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
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
Forum:
Programmer Certification (OCPJP)
inner class?
srikanth reddy
Ranch Hand
Posts: 252
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
hi,
18) What class must an inner class extend: 1)The top level class 2)The Object class 3)Any class or interface 4)It must extend an interface
In this the answer given was 3.
my doubt is 2 is also correct and also that is it neccessary that the inner class must extend a class or interface ??
thanks
sri
Thanks & Regards<br /> <br />-Srikanth
Santana Iyer
Ranch Hand
Posts: 335
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
it is not required that inner class must extend any class or interface
but it can extends any class or interface
srikanth reddy
Ranch Hand
Posts: 252
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
santana,
no my doubt is the every class extends the Object class also ...but the answer is 3...also in the question it was mentioned as must not can ...
so whats the exact answer???
thanks
sri
Thanks & Regards<br /> <br />-Srikanth
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
///inner class///
inner class
What class must an inner class extend
anon class
Inner class extends
More...