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 Posted / 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 |
Post New Answer View All Answers
What is a method vs function?
What is the different between get and post?
What is procedure overloading?
What are thread priorities and importance of thread priorities in java?
List two java ide’s?
What are the two types of java programming?
What is classname class in java?
How can we make string upper case or lower case?
Can arraylist contain null values?
How do you format in java?
What is lazy programming?
What is a percentage sign called?
What are the types of java languages?
How to do a true java ping from windows?
What are data types in oop?