Q.

Which is true about an anonymous inner class?

A. It can extend exactly one class and implement exactly one interface.
B. It can extend exactly one class and can implement multiple interfaces.
C. It can implement multiple interfaces regardless of whether it also extends a class.
D. none
Answer» B. It can extend exactly one class and can implement multiple interfaces.
1.7k
0
Do you find this helpful?
10

View all MCQs in

Java Programming

Discussion

No comments yet