InterviewSolution
Saved Bookmarks
| 1. |
Can An Interface Extends More Than One Interface In Java? |
|
Answer» YES, unlike classes, an interface can EXTEND more than ONE interface in JAVA. There are several example of this behavior in JDK itself e.g. java.util.List interface extends both Collection and Iterable interface to tell that it is a Collection as well as it allows iteration via ITERATOR. Yes, unlike classes, an interface can extend more than one interface in Java. There are several example of this behavior in JDK itself e.g. java.util.List interface extends both Collection and Iterable interface to tell that it is a Collection as well as it allows iteration via Iterator. |
|