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

What is the class in java?

1015


What is sleep method?

1153


Is java owned by oracle?

1017


What do you mean by constructor?

981


What is the applet security manager, and what does it provide?

997


What are different type of exceptions in java?

973


How does the garbage collector works in java?

1093


How will you load a specific locale?

974


What is a loop java?

1056


What is get () in java?

1054


What is the benefit of lambda expressions?

1066


What is java virtual machine and how it is considered in context of java’s platform independent feature?

1173


how can you take care of mutual exclusion using java threads? : Java thread

1048


Explain the difference between association, aggregation and inheritance relationships.

1089


What is java volatile?

1052