Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • 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"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic