Multiple choice technology programming languages

An inner class must be defined within the opening and closing braces of a class, but outside any method - just like data members

  1. True

  2. False

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

In Java, inner classes must be defined within the class definition but outside any method, similar to how data members are declared. This is the correct syntax for inner class placement.