What lines will not cause a compilation error?
Explanation
There will be a compilation error in the line
 float f = 1.01; 
since the constant 1.01 is of type double by default, and does not lead to float type automatically

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Java quizzes
Cosmo
Sign Up Now
or Subscribe for future quizzes