Question 17
Back to Exercise
What is an anonymous class?
- A A class without fields
- B A class with no name, declared and instantiated in one expression, usually to implement an interface once Correct
- C A private class
- D A deprecated class
Correct Answer: Option B
For single-method interfaces a lambda is shorter.
Discussion & Comments 0
Share your method, a shortcut, or ask about a step you didn't follow.
No comments yet. Be the first to share your solution!