I am not sure if I am actually allowed to post the question directly from the K&B book here for public viewing. So at this stage, just going to mention, two questions which I had.
Chapter 2, SELF - TESTS, Question 3
Correct Answer accd to the book: A, C, E
I choosed A, E and F
My reason for selecting F:
Option F states that "If class A was not abstract and method m1( ) on line 2 was implemented, the code would not compile".
If one examines the code snippet given, Then accd to the theory, If a class has a method abstract, then the class should be declared abstract, ELSE ERRORS !!!.
Though, even option C looked right to me, but the question said PICK Only three.
Am I CORRECT OR WRONG, if wrong, then can someone please explain me WHY ? thanks :-)
Chapter 2, SELF - TESTS, Question 14
I selected C and F, the book says B and F.
My Reason: I know the "run" method to be used for whenever the Runnable interface is implemented ( "public void run( )" ).. How can ONE FORGET, K&B highlighted this in a very "ATTRACTING MANNER" :-).
But the way the options for the questions were put, It appeared to me, that they were very much precise to as if just run() method or public void run().
I just wanted to ensure, when one see's a question like this, which is the way to go ??
Those were the two questions I had..
Help would be appreciated.
Oh and K&B, I wish you could also write some of the electrical engineering books.
I am sure.. I know lot of guys who would have been thankfull to u, including me.. :-)
Your BOOK ROCKSSSSSSSSSSSSS