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

interface

 
nishesh chouhan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
could any one tell me that can an interface implement the abstract class .
 
shankar vembu
Ranch Hand
Posts: 309
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no,
an interface can only EXTEND (not implement) an interface.
shanks.
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
An interface can not implement anything. It is always just a "specification".
An abstract class can implement an interface.
A sub-interface can extend an interface as mentioned above.
 
nishesh chouhan
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks cindy for your reply .I got it ......
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic