UGC-NET | UGC NET CS 2015 Jun – III | Question 37

In Java, when we implement an interface method, it must be declared as:
(A) Private
(B) Protected
(C) Public
(D) Friend


Answer: (C)

Explanation: In Java, when we implement an interface method, it must be declared as Public.
For more information on Java interface Refer:Interfaces in Java
option (C) is correct.

Quiz of this Question




My Personal Notes arrow_drop_up
Article Tags :

Be the First to upvote.


Please write to us at contribute@geeksforgeeks.org to report any issue with the above content.