What is the use of anonymous inner classes ?

Answer Posted / chandrarekha

anonymous classes help to declare a class and create an
instance of a class in the same step.

Is This Answer Correct ?    59 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

List the different types of classloaders in java.

501


what is the difference between thread and runnable types? : Java thread

542


What are the escape sequences in java?

561


Explain the difference between hashmap and hashtable in java?

486


Can we declare an interface as final?

570






What are anonymous inner classes?

561


What is the purpose of the main method?

538


What is the difference between conversation & casting?

568


What are extraneous variables examples?

521


Can we use synchronized block for primitives?

602


What is a parameter used for?

512


What is java util?

537


Can we use String with switch case?

660


Is java call by reference?

525


Explain the difference between an object-oriented programming language and object-based programming language?

545