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 is meant by main method?

0 Answers  


How will you override default serialization mechanism in java

2 Answers  


where lives in jvm

5 Answers  


What is the arguement of main method?

1 Answers  


Can you declare the main method as final?

0 Answers  


What happens if an exception is not handled in a program?

0 Answers  


What is printwriter in java?

0 Answers  


Why declare Main() inside the class in java ?

0 Answers   HCL,


How to convert a string to long?

2 Answers  


What is hash method?

1 Answers  


'A class is a template for an object' explain this statement.

0 Answers   Akamai Technologies,


How can you sort dates?

2 Answers   TCS,


Categories