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 is inner class?

Answer Posted / ranganathkini

An inner class is a class that is defined within the
definition of another class but outside any member
definition. Inner classes shud not be marked static.

An Inner class cannot be instantiated directly, i.e. one can
only instantiate an inner class by first instantiating the
outer class.

The Inner class has access to all the static as well as
non-static public/protected/private fields of its enclosing
outer class.

Inner classes are used to provide implementation that are
intimately connected with the enclosing outer class.

Is This Answer Correct ?    39 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of protected in java?

1006


What is the difference between jfc & wfc?

1047


Can a static method be overridden in java?

1003


When a byte datatype is used?

2149


What is a percentage sign called?

1100


Is oracle charging for java?

1007


How many bits is a float?

989


How many static init can you have?

1188


What is a key in java?

967


What is the use of default method in interface in java?

997


Can we use catch statement for checked exceptions?

947


Who is the owner of java?

984


What is an object in java and how is it created?

1038


List any five features of java?

1013


What about method local inner classes or local inner classes in java?

1036