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
Is object a data type?
What is exception hierarchy in java?
when a request is generated from apache tomcat 5.5 and goes to oracle 10g or mysql,,, how the oracle or mysql reads the request as apache is a web server and oracle 10g is application server? when the oracle 10g provides response, how the apche tomcat reads it???
What is the super void?
What is thread safe in java?
What are the advantages of compiled language?
List the different types of classloaders in java.
Which variables are stored in stack?
What are sets in java?
Difference between this() and super() ?
What is difference between variable declaration and definition?
What is a class in java?
What is the this keyword?
What is the basic concept of java?
Differentiate storage classes on the basis of their scope?