I thought it should give compiler error,statement not reached but ans given is 18.
What is the Output?
3.Compile-time error occurs.
(Marilyn added code tags)
[This message has been edited by Marilyn deQueiroz (edited November 27, 2001).]
Sun Certified Programmer for Java 2 Platform
Guess the author of the mock-exam uses JBuilder or something similar.
Originally posted by Valentin Crettaz:
[b]Answer is wrong. It gives a compile error. Try to compile the code and you'll see it. The only construct with which you can use false is with "if" so that you may insert debug conditional compilation.