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 a singleton class in Java? And How to implement a singleton class?

2 Answers  


What are different types of access modifiers?

3 Answers  


Static Variable can referred in non-static method?

3 Answers  


What is the point of java?

1 Answers  


Are maps ordered java?

1 Answers  


Is call by reference possible in java?

1 Answers  


Can we clone singleton class in java?

1 Answers  


Define package in Java.

1 Answers  


What is a substring of a string?

1 Answers  


what modifiers are used with top-level class?

2 Answers  


For which statements we use a label?

3 Answers   Wipro,


can we Connect Applet to Data Base ? with Discriptiom. and also What is Diff. from Applet & Servlet?

1 Answers   Systematix,


Categories