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 are the advantages of exception handling?
What does bitwise or mean?
Can we have multiple catch block for a try block?
Which collection is ordered in java?
What is loop in java?
What is difference between float and double?
what models are available for event handling?
What are MalformedURLException and UnknownHost Exceptions and whey they will be thrown?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What is the relationship between clipping and repainting under awt?
Is there a way to increase the size of an array after its declaration?
Can we override static methods?
18 Answers Bally Technologies,