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?what is the use of inner class?where we
create the object for inner class? and inner class can
extend any class or inner class can implement any interface?



What is inner class?what is the use of inner class?where we create the object for inner class? and ..

Answer / gajendar

In Java, just like methods, variables of a class too can have another class as its member. Writing a class within another is allowed in Java. The class written within is called the nested class, and the class that holds the inner class is called the outer class.
we can create object for inner class in methods of outer class.it can extend exactly 1 class or impliment 1 interface

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What methodology can be employed to locate substrings inside a string?

0 Answers  


Is there any limitation of using inheritance?

0 Answers  


What is Transient and volatile

10 Answers   iFlex,


Can you declare a static variable in a method?

7 Answers  


how to use this key word in java programming?

7 Answers  


what is the purpose of "virtual"?

0 Answers   EDS,


What are the notations in Java?

1 Answers   Cap Gemini,


what is stringtolennizer with example?

2 Answers   Symphony,


What do heavy weight components mean in java programming?

0 Answers  


Difference between keyword and identifier.

0 Answers   TCS,


Explain inner classes ?

0 Answers  


Differentiate Vector and ArrayList?

6 Answers   Max Telecom, Wipro,


Categories