227k views
3 votes
Which interface methods are not abstract? A) private and protected methods B) static and default methods C) public methods D) no static methods

1 Answer

3 votes

Final answer:

The correct answer is B) static and default methods.

Step-by-step explanation:

The correct answer is B) static and default methods. Static and default methods are methods defined in an interface that have an implementation, unlike abstract methods. Static methods belong to the interface itself, while default methods provide a default implementation for the method. In contrast, private and protected methods cannot be defined in an interface, and public methods can be either abstract or non-abstract.

User Koen
by
7.5k points