Nested classes VS Inner classes?

Answers were Sorted based on User's Feedback



Nested classes VS Inner classes?..

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

Nested classes VS Inner classes?..

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

Nested classes VS Inner classes?..

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

Post New Answer

More Core Java Interview Questions

What is the difference between a factory and abstract factory pattern?

0 Answers  


Which is better arraylist or vector?

0 Answers  


How do you sort in descending order in java using collections sort?

0 Answers  


What is the length of a string?

0 Answers  


wht is mean by dirty read?

1 Answers  






What is the purpose of the system class in java programming?

0 Answers  


Why java does not support pointers?

0 Answers  


Explain java coding standards for constants?

0 Answers  


difference between arraylist and linkedlist otherthan performance

2 Answers   L&T,


Which software is used for java programming?

0 Answers  


List some important characteristics on jre

0 Answers  


Is java owned by oracle?

0 Answers  


Categories