Multiple choice

Which are the classes that are not named in Java and the classes when you declare in a method do not need a name?

  1. Anonymous Classes

  2. Java Foundation Classes

  3. Inner Classes

  4. Adapter Classes

  5. Event Object

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

Classes that are not named are called anonymous classes and when you declare these classes in a method, don't need a name for these classes.