0 votes
in JAVA by
Which of the following is true about the anonymous inner class?

i) It has only methods

ii) Objects can't be created

iii) It has a fixed class name

iv) It has no class name

1 Answer

0 votes
by

iv) It has no class name

Reason: Anonymous inner classes are the same as the local classes except that they don't have any name. The main use of it is to override methods of classes or interfaces. And the rest three options are false about the anonymous inner classes as it can have both methods and objects. It does not have any fixed came name.

...