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...

explain Anonynous inner class?

Answer Posted / arjun

It is a class without any name. It is used when we want to
have an encapsulation(i.e. want to use an object of a class)
only once and never required again. we combine the object
creation and class code in a interesting way.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between string and new string?

974


Why do we declare a class static?

1075


Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?

1181


Does it matter in what order catch statements for filenotfoundexception and ioexception are written?

917


What if constructor is protected in java?

1036


What does sprintf return?

1017


What modifiers are allowed for methods in an interface?

1106


What is meant by data hiding/encapsulation?

1055


Can a class have more than one object?

945


What is a consumer in java?

970


Explain what access modifiers can be used for methods?

1036


What is illegal identifier in java?

974


Why is core java important?

999


Is java call by reference?

931


Can we override constructors?

949