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?
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 |
What methodology can be employed to locate substrings inside a string?
Is there any limitation of using inheritance?
What is Transient and volatile
Can you declare a static variable in a method?
how to use this key word in java programming?
what is the purpose of "virtual"?
What are the notations in Java?
what is stringtolennizer with example?
What do heavy weight components mean in java programming?
Difference between keyword and identifier.
Explain inner classes ?
Differentiate Vector and ArrayList?