Important Java Mcq 1

Which of the following statements about interfaces is not true?

a. Interface definitions does not have implementation

b.  Interfaces must be declared as public

c. Interface does not have constructors

d. None of the above

Answer:

b. Interfaces must be declared as public.

Explanation:

Interfaces have abstract methods and members whose
implementation is done in the derived class. By default all the methods in an Interface are public, so there is no need to explicitly use the public keyword with them.

Related MCQs
Aniket Malik

Aniket Malik

CERTIFIED TUTOR/TRAINER WITH 300+ REVIEWS

Facing difficulty with

this concept?