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 is the use of list in java?
What is data type in java?
Urgent requirement of JAVA/.NET/QA in a CMMI level3 MNC for Pune location.
Are primitives objects?
What causes memory leaks in java?
Explain java coding standards for constants?
How are variables stored in memory?
What is compareto?
How we can declare a static variable?
why doesn't java run on all platforms?
What are byte codes?
What is the exact difference in between Unicast and Multicast object? Where will it be used?