Q.

Which of the following are true about interfaces.

A. Methods declared in interfaces are implicitly private.
B. Variables declared in interfaces are implicitly public, static, and final.
C. An interface contains any number of method definitions.
D. The keyword implements indicate that an interface inherits from another.
Answer» B. Variables declared in interfaces are implicitly public, static, and final.
3.7k
0
Do you find this helpful?
28

View all MCQs in

Java Programming

Discussion

No comments yet