Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCPJP
Search Coderanch
Advance search
Google search
Register / Login
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
Tim Cooke
paul wheaton
Paul Clapham
Ron McLeod
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Saloon Keepers:
Tim Holloway
Carey Brown
Roland Mueller
Piet Souris
Bartenders:
Forum:
Programmer Certification (OCPJP)
Question about Master Exam question
Salvador Cecilio
Ranch Hand
Posts: 41
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I got this wrong on the second MasterExam that I downloaded.
Which two statements are true? A. A non-static, method-local inner class can be marked abstract. B. A method-local, anonymous inner class can be declared protected. C. A method-local, inner class must be marked final. D. A non-static, method-local inner class can access all members of the enclosing class. E. A method-local anonymous inner class cannot extend an abstract class
I picked A and E.
Can anyone explain why this is wrong?
Thanks,
SCJP 1.4 - 93%
SCWCD 1.4 - 89%
IBM FileNet 3.5 - Developer
IBM FileNet 3.5 - Administrator
Phani Kumar
Greenhorn
Posts: 22
posted 19 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
My answer is A and D. E is incorrect because
Java
doesnt restrict an inner class extending from another class, either abstract or concrete.
Don't get me started about those stupid
light bulbs
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Confusion about Inner Class Classifications
inner class static or no?
accessibility modifiers for classes
Local and Anonymous class can be static or non-static
Inner class
More...