Multiple choice technology programming languages

Anonymous classes do not allow the use of extends and implements clauses

  1. True

  2. False

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

Anonymous classes are declared and instantiated in one expression using the class instantiation syntax 'new SuperClass() { ... }' or 'new Interface() { ... }'. The extends/implements is implied by the type being instantiated, not explicitly declared.