aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes What class must an inner class extend Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "What class must an inner class extend" Watch "What class must an inner class extend" New topic
Author

What class must an inner class extend

Richard Yi
Greenhorn

Joined: Feb 04, 2004
Posts: 16
Hi all friends! I'm a freshman for this forum and this is my first post.
Below question's ans is 3, but I think it should be 2. Could you pls help me and give me the explanation! Many thans!
What class must an inner class extend:
Mutiple:
1) The top level class
2) The Object class
3) Any class or interface
4) It must extend an interface
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
Answer 2 would restrict inner classes to extending only the Object class, Answer 3, on the other hand, includes the Object class in its 'any class or interface' statement.
Richard Yi
Greenhorn

Joined: Feb 04, 2004
Posts: 16
Mn~~~ Ray, I think the question is "MUST extend", NOT "could extend" . An inner class could extend any classes and interfaces of course.
[ February 04, 2004: Message edited by: Richard Yi ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: What class must an inner class extend