If we write, int a=4.5 in JAVA, it will give a syntax error. true or false
Answers
Answered by
3
Yes, it will give syntax error because you have used 'int' data type and for decimal values you have to use 'double' data type. If you type "double a = 4.5" then it won't show any error.
________________________________________________________________
hope it helps
mark me as Brainliest please
Answered by
3
Answer:
Explanation:
PLS MARK AS BRAINLIEST
Similar questions