Answer Posted / karthee
Static inner class
can only access the static members of the enclosing class.
not associated with the instance of the enclosing class.
can only have static members.
Nonstatic class
is associated with the instance of the enclosing class.(we
need it first to access the nonstatic class)
can access all the member of the encosing class.
is like other members of the enclosing class.
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What are the problems faced by java programmers who don't use layout managers?
Which is easier .net or java?
Can we override the overloaded method?
What is procedure overloading?
What is the main purpose of java?
What is the purpose of using bufferedinputstream and bufferedoutputstream classes?
What method is used to specify a container's layout in java programming?
How listener identify that the event came from a particular object?
What is the Scope of Static Variable?
What is the base class of all exception classes in java?
Explain the importance of import keyword in java?
How can u increase the heap size in the memory?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
How do you compare values in java?
Which of the following classes will have more memory allocated?