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 void class in java?

1024


How big is a 32 bit integer?

1095


Explain exception chaining in java?

1222


What is the purpose of java?

1049


Differentiate storage classes on the basis of their scope?

1230


What is the purpose of an interface?

1095


Can we store variables in local blocks?

1405


What is the basic concepts of OOPS?

1244


What are the characteristics of java?

1120


How many static init can you have?

1265


What are thread safe functions?

989


How does thread synchronization occurs inside a monitor?

1181


Explain covariant method overriding in java.

1163


What does exp mean in math?

1044


Explain the differences between static and dynamic variables?

1197