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 |
why java is not supporting multiple inheritence?
When the constructor of a class is invoked?
How do you replace a string in java?
What type of variable is gender?
What is the blank final variable?
what is request processor?
Considering notepad/ie or any other thing as process, what will happen if you start notepad or ie 3 times? Where 3 processes are started or 3 threads are started?
What is memory leak and how does java handle it?
How an object is serialized in java?
Hi, This is ravi i have a question like this i have string "UNDERSTAND" now i want to count the letters how many times it occures.i.e from the above string the out put should be like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1. how can i achieve this Thnaks in advance for your response ..
Can I overload to string method
What is an object in Java and what are its benefits?