Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the use of anonymous inner classes ?

Answer Posted / sumit bansal

Anonymous class exist till the method or block (In which it
is defined) runs. After that it vanishes so it help to use
the memory efficiently.

in your code if you want a particular class once and that
is also in the method/block use anonymous class.

it is the best of my knowledge. if you know more please
reply me.

Is This Answer Correct ?    20 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is dependent variable?

837


What is thread pool? How can we create thread pool in java?

1012


What is the difference between compile-time polymorphism and runtime polymorphism?

934


Is java a super set of javascript?

1040


Can a boolean be null java?

920


What is collection class in java?

930


Can we print null in java?

998


What is a method declaration?

940


What is final keyword?

1086


What are the drawbacks of singleton class?

950


What is static block?

1058


What do you mean by light weight and heavy weight components?

968


What is pre increment and post increment in java?

942


Can classes declared using the abstract keyword cab be instantiated?

1006


What is included in core java?

999