Multiple choice

Which of the following is/are correct statement(s) about an interface?

  1. Constant declarations of public, static, and final are optional in any combination.

  2. An interface can have only abstract methods and no concrete methods are allowed.

  3. A class implementing an interface can itself be abstract.

  4. A class can implement any number of interfaces.

  5. All of the above

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

All of the above are correct statements.