• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

SCJP Question formation Doubt!

 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
arch rival
Posts: 2813
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Manikandan Jayaraman
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
reply
    Bookmark Topic Watch Topic
  • New Topic