Multiple choice general knowledge

Interface have an inner class

  1. True

  2. False

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

Interfaces in Java can contain inner classes, including nested interfaces, classes, and enums. These are implicitly static and public when declared inside an interface.