Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

does interface gets converted to abstractclass at compile time or runtime

 
NareshAnkuskani Kumar
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it true that an interface extends an object class?
 
Lakshmanan Arunachalam
Ranch Hand
Posts: 99
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface can extend only other interfaces, not any other classes. Hence interface is not an java.lang.Object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic