Answer Posted / ranganathkini
An inner class is a class that is defined within the
definition of another class but outside any member
definition. Inner classes shud not be marked static.
An Inner class cannot be instantiated directly, i.e. one can
only instantiate an inner class by first instantiating the
outer class.
The Inner class has access to all the static as well as
non-static public/protected/private fields of its enclosing
outer class.
Inner classes are used to provide implementation that are
intimately connected with the enclosing outer class.
| Is This Answer Correct ? | 39 Yes | 7 No |
Post New Answer View All Answers
Is arraylist ordered?
How can u increase the heap size in the memory?
What are inbuilt functions?
What is difference between path and classpath?
Can we use synchronized block for primitives?
How would overload a function based on return type?
What is method overloading in java ?
How are multiple inheritances done in Java?
What is functional interface in javatpoint?
What is derived datatype?
What is null object in java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
What is variable and rules of variable?
Who found java?
Can you use this() and super() both in a constructor?