This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
In the following code,the code generates compile time error as instance variable age is not initiazed.
Options are - 1)Compiles and runs with no output 2)Compiles and runs printing out The age is 1 3)Compiles but generates a runtime error 4)Does not compile 5)Compiles but generates a compile time error Whats the difference in the options 4 and 5 . Doesn't it mean that,When compiler error occurs,the code has not compiled..?? Thanx
Just a suggestion. Be VERY careful when taking any mock exams and relying on any answers to the questions provided. I have read quite a few very poorly worded questions. Hopefully one can assume that the official programmer exam is written in proper English, but do not assume under any circumstance that the mock exams are written correctly.