This question already has an answer here:
One is definitely if you have multiple interfaces implemented then you can have all those methods implemented in the class.
But this could be done earlier as well with a mixture of abstract class and interface.
Then why is this done in Java 8?
Is it not against the very definition of "Java does not support multiple inheritance" ?
Aucun commentaire:
Enregistrer un commentaire