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

Do you know how to reverse string in java?

1159


Does list allow duplicates in java?

944


What is the format specifier?

952


Can we call the constructor of a class more than once for an object?

1101


What is the difference between the direct buffer and non-direct buffer in java?

1042


How do you make a thread in java?

1108


What is the function of log?

1021


Why scanner is used in java?

1087


What does nullpointerexception mean?

1094


What is the purpose of declaring a variable as final?

980


Is java still relevant?

990


What is use of map in java?

1021


Java is Pass by Value or Pass by Reference?

1049


Explain java coding standards for constants?

1023


What is a protected method?

1152