Of course, the Interface can extends the other interface, but we can only describe methods in each interface (Superclass interface and Subclass interface)..
Sorry, perhaps my english language isn't too good.. Prepare for SCJP 6, Please God help me.. ☼
References : [Java.Boot] [JavaChamp] [JavaPrepare]
Leonardo Carreira wrote:Of course, the Interface can extends the other interface, but we can only describe methods in each interface (Superclass interface and Subclass interface)..
we don't describe methods in an interface but only declare them.
Think about it for a moment. Does the second interface really implement the methods of the first? Can you instantiate the second interface?
Of course not. So the second interface doesn't implement the first, rather it extends it, but remains abstract. So it makes perfect sense that the second interface extends the first.