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 / bindhu

We can declare an inner class within the body of a method
without naming it. These classes are known as anonymous
inner classes
Very useful for controlled access to the innards
of another class. and useful when we need one instance of a
special class.

Is This Answer Correct ?    11 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain runtime exceptions?

1182


Can a abstract class be defined without any abstract methods?

1007


How do I compare two strings in word in java?

992


What are the types of casting?

1071


Define inheritance?

1021


What is square root in java?

1112


What is byte data type?

1005


What is meant by method overriding?

1113


What are the basic concepts of OOPS in java?

1037


What is the difference between the file and randomaccessfile classes?

1100


Can we have try block without catch block?

1031


Why parameters should be passed by reference?

973


Can we use return in constructor?

952


Explain about the security aspect of java?

967


How is java hashmap implemented?

1034