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 |
How does marker interface provides functionality to the implemented class ? or How dose maker interface gets the functionalities as serialization or cloning.
Is ++ operator is thread safe in java?
Which package is imported by default?
What is meant by string is immutable?
What is bubble sorting in java?
What is the purpose of the finally clause?
How does the java compiler work?
What are the Abstract Classes provided by Java?
Hi friends, i am new to java. can you explain how java is secured.
How are multiple inheritances done in Java?
What is the difference between method and means?
What is the difference between the >> and >>> operators?