Nested classes VS Inner classes?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is map ordered in java?

529


write a program that list all permutations of ABCDEF in which A appears before B?

2009


What is a nested structure?

532


Implement two stacks using a single array.

568


What is command line used for?

587






What must a class do to implement an interface in java programming?

533


What is function overriding and overloading in java?

577


How do I get the | symbol on my keyboard?

593


How static variable work in java?

596


What are peerless components in java programming?

577


Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?

613


How many bytes is a string?

558


Can string be considered as a keyword?

566


What are the default and parameterized constructors?

549


What data type is string java?

535