File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes SCJP Question formation Doubt! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "SCJP Question formation Doubt!" Watch "SCJP Question formation Doubt!" New topic
Author

SCJP Question formation Doubt!

Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
LINK: http://www.angelfire.com/or/abhilash/Main.html

Question 24.

An Anonymous Inner class

a. Does not have a constructor
b. Can implement an interface
c. Can extend a non-final Class
d. Can implement an interface and extend a non-final class (at the same time).

Answer was a,b,c. Thats right!

It says "Doesnt have a constructor". I know that "We cannot define constructor for Anonymous Inner Class". But choice 'a' is not prefectly versed like what I have written. Right? It says, "Anonymous Inner Class does not have a constructor", which is false, as JVM provides a constructor to Anonymous Inner Class.

Can you please tell me, whether questions in actual exam will have statements very specifically written or randomly versed like this ? Thanks!


Regards,<br />Mani<br />SCJP 1.4 (95%)<br />SCWCD 1.4 (94%)
Marcus Green
arch rival
Rancher

Joined: Sep 14, 1999
Posts: 2813
The people who create the exam questions put a great deal of effort into avoiding ambiguities, so it should be clear what the question is asking.

As you can see from the example question given it is hard to create an absolutly unambiguous question. Many times I have received questions via email which on first reading I did not understand how the sender had mis-interpreted my question. After some thought I frequently understood how easily the mis-communication might have happened.


SCWCD: Online Course, 50,000+ words and 200+ questions
http://www.examulator.com/moodle/course/view.php?id=5&topic=all
Manikandan Jayaraman
Ranch Hand

Joined: Sep 15, 2004
Posts: 230
Oh Marcus! Thats right!

I hope that I dont get questions that confuse me like this. I atleast expect that even if I am confused, I should be confused to the same wavelength, of the question setter, so that I will be right in answering the question correctly

After all, it is the point that you know the answer and since you are confused on the verse, you tend to give wrong answers
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SCJP Question formation Doubt!
 
Similar Threads
Anonymous class question
anonymous classes
Anonymous Inner class mock question
Local and Anonymous class can be static or non-static
does an anonymous inner class have constructor?