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

What classes of exceptions may be thrown by a throw statement?

1012


What is ide with example?

1051


Can you call a method in a method?

1170


What is math floor in java?

994


What is difference between == and === in js?

1064


Where we write javascript code in html page?

1107


How do you do descending order in java?

1013


What is the purpose of using javap?

1157


What is a buffer in computer?

1063


Can constructor be static or final?

1161


How would you format a date in java? I.e. In the ddmmyyy format?

1434


Why charat is used in java?

1110


What is the base class for error and exception?

1038


Can substring create new object?

1188


What do you mean by data type?

1064