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 |
Define canvas?
What is r in java?
What is the difference between a break statement and a continue statement?
What is null in java?
What are streams in java 8?
What is the largest number a double can hold?
where singleton classes are used in j2ee web application.can we use it for connection pooling.
for what purpose we use applets ?
What is meant by wrapper classes?
How do you pass by reference?
How many arguments can a method have java?
Is it safe to install java on my computer?