What is the use of anonymous inner classes ?

Answer Posted / sam e

The use of an anonymous inner class is to create a
non-reusable implementation of an abstract class or
interface. For example, a UI button that is Runnable can
implement its run method at the same place in code that it
is created.

Is This Answer Correct ?    20 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which class contains a method: cloneable or object?

546


Why is string buffer better than string ?

611


Is java a software?

526


Where is stringbuffer stored?

563


What is substring in java?

629






What is parsing in java?

544


How is it possible for two string objects with identical values not to be equal under the == operator?

539


What are different access specifiers in java? Explain

641


What is thread synchronization in java?

489


How to make a class or a bean serializable?

551


What is sorting in java?

550


What is the difference between the final method and abstract method?

550


What is finally and finalize in java?

604


What is arrays sort in java?

583


What is the += operator called?

590