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 |
Which non-unicode letter characters may be used as the first character of an identifier?
What is used of static keyword in java?
Explain different states of a thread in java?
what Data encapsulation in java?
What is type safety in java?
GoldMansachs Interview process....
What is the largest long allowed by java?
These static constructors are correct ? class A { statc intA() { } static A(int x,int y) { } static A(int x) { } }
Default layout of panel and frame?
Why char array is favored over string for the storage of passwords?
When a byte datatype is used?
What is hashtable and explain features of hashtable?