InterviewSolution
Saved Bookmarks
| 1. |
Can An Interface Be Extended By Another Interface In Java? |
|
Answer» An INTERFACE can be EXTENDED by ANOTHER interface in Java. The CODE for the same would be like as shown below: // this interface extends from the Body interface: PUBLIC interface FourLegs extends Body { public void walkWithFourLegs( ); } An interface can be extended by another interface in Java. The code for the same would be like as shown below: // this interface extends from the Body interface: public interface FourLegs extends Body { public void walkWithFourLegs( ); } |
|