Multiple choice java

Inner classes can be defined within methods.

  1. True

  2. False

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

Java supports local inner classes defined within method bodies. These classes are scoped to the method block and can access the method's local variables (if final or effectively final).