0

Interface may contain only abstract methods.why this statement is false

7/8/2019 7:43:04 AM

Rohit Ahuja

2 Answers

New Answer

0

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