Question 51Asked in UGC NET Computer Science, June 2015 (Paper II & III, Selected Questions)

In Java , when we implement an interface method, it must be declared as :

  1. APrivate
  2. BProtected
  3. CPublic
  4. DFriend
Show answerHide answer

Correct answer: (C) Public

Explanation

Interface: It is used to provide total abstraction. That means all the methods in interface are declared with empty body and are public and all fields are public, static and final default.

From UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions)

This is question 51 of UGC NET Computer Science PYQ, June 2015 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.