Which of the following statements are true?

a. An anonymous inner class is an inner class without a name.
b. An anonymous inner class must always extend a superclass or implement an interface, but it cannot have an explicit extends or implements clause.
c. An anonymous inner class must implement all the abstract methods in the superclass or in the interface.
d. An anonymous inner class always uses the no-arg constructor from its superclass to create an instance. If an anonymous inner class implements an interface, the constructor is Object().
e. An anonymous inner class is compiled into a class named OuterClassName$n.class.

a. An anonymous inner class is an inner class without a name.
b. An anonymous inner class must always extend a superclass or implement an interface, but it cannot have an explicit extends or implements clause.
c. An anonymous inner class must implement all the abstract methods in the superclass or in the interface.
d. An anonymous inner class always uses the no-arg constructor from its superclass to create an instance. If an anonymous inner class implements an interface, the constructor is Object().
e. An anonymous inner class is compiled into a class named OuterClassName$n.class.

Computer Science & Information Technology

You might also like to view...

A split form displays data in two views from the same source

Indicate whether the statement is true or false

Computer Science & Information Technology

You can use ____ to override the arithmetic order of preference.

A. parentheses B. brackets C. braces D. asterisks

Computer Science & Information Technology