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 difference between a factory and abstract factory pattern?
Which is better arraylist or vector?
How do you sort in descending order in java using collections sort?
What is the length of a string?
wht is mean by dirty read?
What is the purpose of the system class in java programming?
Why java does not support pointers?
Explain java coding standards for constants?
difference between arraylist and linkedlist otherthan performance
Which software is used for java programming?
List some important characteristics on jre
Is java owned by oracle?