0
Interface may contain only abstract methods.why this statement is false
?
2 Réponses
+ 1
I think because of the word "may". It would mean that an Interface can have also non abstract methods. But an interface can have only abstract methods.
https://www.google.de/amp/s/www.geeksforgeeks.org/difference-between-abstract-class-and-interface-in-java/amp/
0
Java can have non abstract methods . They are default methods and static interface methods. I believe they were introduced in Java 8 or 9