Answer to Question 56)
Objective 5.1)
1) System.out.println(i++);
3) System.out.println(i);
4) System.out.println(i--);
The options for this question might look suspiciously easy if you are not aware of the effects of the post-increment operators. The ++ and -- operations for examples 1 and 4 only come into effect after the output operations, ie after whatever else is done to them on that line of code. Option 2 should be fairly obvious as you should know that the single quote characters indicate a char value, ie storing the character rather than the numberical value for 0.
http://www.jchq.net/tutorial/05_01Tut.htm
--------------------------------------------------------------------------------
Answer to Question 57)
Objective 6.2)
4) System.out.println( ((Agg) a).getFields());
The Base type reference to the ins
The Base type reference to the instance of the class Agg needs to be cast from Base to Agg to get access to its methods.The method invoked depends on the object itself, not on the declared type. So, a.getField() invokes getField() in the Base class, which displays Base. But the call to ((Agg)a).getField() will invoke the getField() in the Agg class. You will be unlucky to get a question as complex as this on the exam.
http://www.jchq.net/tutorial/06_02Tut.htm
--------------------------------------------------------------------------------
Answer to Question 58)
Objective 4.4)
2) compilation and output of false
A variable defined at class level will always be given a default value and the default value for the primitive type boolean is false
http://www.jchq.net/tutorial/04_04Tut.htm
--------------------------------------------------------------------------------
Answer to Question 59)
Objective 4.6)
1) The x,y coordinates of an instance of MouseEvent can be obtained using the getX() and getY() methods
4) The time of a MouseEvent can be extracted using the when parameter of the MouseEvent constructor
If you chose option 4, referring to the mythical getTime method you have mad