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

Difference between String & StringBuffer

16 Answers   IBM, Infosys, Tech Mahindra, Wipro,


Is string passed by reference in java?

0 Answers  


Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?

0 Answers  


How we get some middle records in one table?

2 Answers   3i Infotech,


What do negative exponents mean?

0 Answers  






Difference between a Canvas and a Scroll Pane?.

1 Answers   NIIT,


How java enabled high performance?

0 Answers  


What modifiers are used for interface declaration?

7 Answers  


Why java is call by value?

0 Answers  


What is the meaning of flag day?

0 Answers  


What is the main difference between java platform and other platforms?

0 Answers  


How do you read and print a string in java?

0 Answers  


Categories