• Post Reply Bookmark Topic Watch Topic
  • New Topic

John Hunt Q.30

 
bill bozeman
Ranch Hand
Posts: 1070
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is taken from John Hunt's Mock exam at http://www.javaranch.com/maha/_Mock_Exams/JohnJuntMockExam.htm
Q. 30
What class must an inner class extend:
A.The top level class
B.The Object class
C.Any class or interface
D.It must extend an interface
His answer is C, but correct me if I am wrong I think the question should read, What class must an anonymous inner class extend, not just an inner class.
 
Adrian Yan
Ranch Hand
Posts: 688
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I thought he mean "What class CAN an inner class extends?"
 
sachin duggal
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes I think the question should be
"What class CAN an inner class extend"
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!