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

Inner Class: classes defined in other classes ,including
those defined in methods are called inner classes.
An inner class can have any accessiblity including private.

Anonumous class: Anonymous class is a class defined inside
a method without a name and is instantiated and declared in
the same place and cannot have explicit constructors.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a class be defined inside an interface?

1076


Explain different ways of creating a thread. Which one would you prefer and why?

1101


When object is created and destroyed?

1142


How do you remove all elements from an arraylist in java?

1099


What is integers and example?

1051


What is the difference between serializable and externalizable interfaces?

1169


What is encapsulation in java?

1172


What is quick sort in java?

1070


What is the purpose of garbage collection in java? When is it used?

1090


Where are the card layouts used?

1122


What is data string?

1047


What java is used for?

1118


What is unicode datatype?

1015


What is arguments in java?

1056


What is the difference between assignment and initialization?

1093