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 |
How do I get the | symbol on my keyboard?
Why set do not allow duplicates in java?
how does the run() method in runnable work? : Java thread
java program with complete 4 oops concepts implemented example
What is difference between string and stringbuffer?
What is serial version uid and its importance in java?
What is the Set interface?
Discuss different types of errors that generally occur while programming.
What is better- service oriented or batch oriented solutions?
what is the use of thread?Justify it by project point of view
What is difference between stringbuffer and string?
Is java type safe?