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

What is difference between filereader and bufferedreader?

903


What are peerless components?

1033


What is java beans?

946


Can we declare array without size in java?

965


Can a class be defined inside an interface?

985


Does java allow overriding static methods ?

1063


What is an object’s lock and which object’s have locks?

902


How do weakhashmap works?

1101


how come we know the object is no more used in the class?

6375


How to overcome the exception object reference not set to an instance of object?

1106


If a variable is declared as private, where may the variable be accessed?

1011


when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???

2116


What are thread priorities and importance of thread priorities in java?

1071


What happens when main () method is declared as private?

1093


How can an exception be thrown manually by a programmer?

937