Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Is it right? An interface may contain abstract method.
The fact is Interface only contains abstract methods and constants. So, I think: this statement: "An interface MAY contain abstract methods" is TRUE.
2 ответов
+ 3
https://docs.oracle.com/javase/tutorial/java/IandI/interfaceDef.html
"The interface body can contain abstract methods, default methods, and static methods. An abstract method within an interface is followed by a semicolon, but no braces (an abstract method does not contain an implementation)."
I think it's a play on words, we don't have to use the abstract keyword to mark an interface method as abstract. If it has no implementation, it is implicitly abstract.
0
Yes you can say that it's true