Computer Science, asked by Anonymous, 10 months ago

If we write, int a=4.5 in JAVA, it will give a syntax error. true or false

Answers

Answered by MrBrainlyBrilliant
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 priyomrabhadas
3

Answer:

true.... true,.....

Explanation:

PLS MARK AS BRAINLIEST

Similar questions