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 |
How many objects are created when we create String class object using new operator?
How will you invoke any external process in java?
Where pragma is used?
What are aggregate functions explain with examples?
What is the use of predicate in java 8?
different between exception and error? explaim check and uncheck exception
Explain the difference between an object-oriented programming language and object-based programming language?
Can you run java program without main method?
Which java ide is used the most?
I have 100 records in a table with two rows. I need to display 10 records per page like Google Search. I need only the Logic(Pagination) in Pure Java. No JSP and all..Thanks in Advance...
How are multiple inheritances done in Java?
Is a class subclass of itself?