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

5 1 vote
Question Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x