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 |
Can you make an instance of an abstract class?
Can an interface have a class?
suppose we have an interface & that interface contains five methods. if a class implements that interface then we have to bound that to give tha definition of all five methods in that class. If we declare that class as abstract then can we call only two methods to give the deinition of that method & i don't want to give the definition of all the methods? can it possible
Why doesn't the java library use a randomized version of quicksort?
what are variables in java
what is daemon thread and which method is used to create the daemon thread? : Java thread
How static variable work in java?
What is the function of static in java?
Why are there no global variables in java?
Matrix multiplication only using OOP concepts .
what is a static block?
What are peerless components?