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

How do I get the | symbol on my keyboard?

0 Answers  


Why set do not allow duplicates in java?

0 Answers  


how does the run() method in runnable work? : Java thread

0 Answers  


java program with complete 4 oops concepts implemented example

0 Answers   Infosys, NIIT,


What is difference between string and stringbuffer?

0 Answers  


What is serial version uid and its importance in java?

0 Answers  


What is the Set interface?

2 Answers  


Discuss different types of errors that generally occur while programming.

0 Answers   Amdocs,


What is better- service oriented or batch oriented solutions?

0 Answers   Amdocs,


what is the use of thread?Justify it by project point of view

7 Answers  


What is difference between stringbuffer and string?

0 Answers  


Is java type safe?

0 Answers  


Categories