This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori 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.