Multiple choice technology programming languages

Annonymous Inner classes are not possible within an Interface.

  1. True

  2. False

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

Anonymous inner classes can be created within interfaces in specific contexts. While interfaces cannot have instance initializers, anonymous classes can be defined inside static contexts like static field initialization or static blocks within the interface. This is a valid though rarely used Java feature.