Which of the following is true about methods in an interface in java?

A. We can define a method in an interface
B. An interface can contain only abstract method
C. Private and protected access modifiers can also be used to declare methods in interface
D. All of the above are true
View Answer

B. An interface can contain only abstract method

Leave a Comment