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 loop means?

0 Answers  


What do you mean by checked exceptions?

0 Answers  


When do we use synchronized blocks and advantages of using synchronized blocks?

0 Answers  


What does bitwise or mean?

0 Answers  


What is appletviewer?

0 Answers  


What does the three dot emoji mean?

0 Answers  


What is a char in java?

0 Answers  


what is jms? features of jms

2 Answers   CTS,


What are meta-annotations?

0 Answers   Cyient,


What is the longest unicode character?

0 Answers  


What does java se mean?

0 Answers  


What things should be kept in mind while creating your own exceptions in java?

0 Answers  


Categories