Multiple choice

Which of the following is false regarding interface in Java?

  1. An interface can have only abstract methods.

  2. Constructors cannot be present in an interface.

  3. An interface can have instance variables.

  4. An interface cannot have static methods.

  5. A class can implement multiple interfaces.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

This is a false statement. An interface cannot have instance variables.