After execution of which lines 0 will be displayed, if i = 0?
Explanation
Initial value of i variable will be the result of the postfix operations i++ and i--.
48 (code of '0') will be the result of the i + "0" expression.

The question is too easy imo, I'd replace the (i) version with something tricky, like forgetting a semicolon in the end.

2023 Feb 17, 1:02:29 PM

Follow CodeGalaxy

Mobile Beta

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