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 |
Difference between String & StringBuffer
16 Answers IBM, Infosys, Tech Mahindra, Wipro,
Is string passed by reference in java?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
How we get some middle records in one table?
What do negative exponents mean?
Difference between a Canvas and a Scroll Pane?.
How java enabled high performance?
What modifiers are used for interface declaration?
Why java is call by value?
What is the meaning of flag day?
What is the main difference between java platform and other platforms?
How do you read and print a string in java?