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 are inner and anonymous class?

Answer Posted / harika.thota001@gmail.com

Inner Class in java so called nested class is nothing but a class that is being defined inside another class. Inner classes are beneficial in two scenarios i.e. access control and naming control. Although these benefits can be acquired using java packages.

anonymous class is an inner class that does not have a name at all. And whose instance is being created at the time of its creation.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what is transient variable in java?

1145


What is Recursion Function?

1204


Explain the importance of throws keyword in java?

999


What does java final mean?

1041


Difference between object and reference?

1174


How are the elements of a gridbaglayout organized in java programming?

983


What is the Difference between Final Class && Abstract Class?

1077


Difference between ‘is-a’ and ‘has-a’ relationship in java?

1006


What is data object example?

1020


Is void a return type?

965


What is the use of isempty in java?

1028


How does map works in java?

1004


What is jvm? Why is java called the platform independent programming language?

1023


Can a abstract class be defined without any abstract methods?

1006


Can you run java program without main method?

1064