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

There are two classes named classa and classb. Both classes are in the same package. Can a private member of classa can be accessed by an object of classb?

1489


How do you escape json?

993


What about anonymous inner classes in java?

1034


Can we compare two strings in java?

1022


What about main thread in java?

1120


What is replaceall in java?

1024


What is the different types of functions?

1057


Why java is a platform independent? Explain

1089


Why arraylist is not synchronized in java example?

1060


What are the methods of object class ?

1060


Can we sort array in java?

946


What is role of void keyword in declaring functions?

1050


What are 5 boolean operators?

1174


How are java objects passed to a method and what are native methods?

1080


How do you identify independent and dependent variables?

1006