Nested classes VS Inner classes?
Answers were Sorted based on User's Feedback
Answer / neeraj agrawal
nested class are those class with in another class
whose defined in static modifier while inner class are those class with in another class is called inner class.
ya we can say static class are nested class while inner class are non static class.
| Is This Answer Correct ? | 11 Yes | 3 No |
Answer / kamal hassan
A staic class difined with in anothaer class is called
nested class.
A non static class defined in another class is called inner
class.
| Is This Answer Correct ? | 7 Yes | 0 No |
Answer / balakrishna
A class consist of another class is called "Nested Class"
but in main method if we consist of classes it is
called "Inner Classes"
| Is This Answer Correct ? | 0 Yes | 12 No |
What is the point of polymorphism java?
When to use runnable interface vs thread class in java?
What modifiers are used with an inner class which is a member of an outerclass?
Implement 2 stacks with just 1 array. The stack routines must not indicate overflow unless every slot in array is used.
What does 0 mean in boolean?
Is java an open source?
What is the difference between Object and Instance?
what is the purpose of using rmisecuritymanager in rmi?
What is bool mean?
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem?
What are the library functions in java?
What is static binding and where it occurs?