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 meant by main method?
How will you override default serialization mechanism in java
where lives in jvm
What is the arguement of main method?
Can you declare the main method as final?
What happens if an exception is not handled in a program?
What is printwriter in java?
Why declare Main() inside the class in java ?
How to convert a string to long?
What is hash method?
'A class is a template for an object' explain this statement.
0 Answers Akamai Technologies,
How can you sort dates?