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

What is an infinite loop? How infinite loop is declared?

576


Which is dependent variable?

504


How variables are declared?

523


What is pass by value?

519


Can main() method in java can return any data?

659






What is a buffer in computer?

520


What is the default size of load factor in hashing based collection?

574


Why does abstract class have constructor?

575


What is == in java?

576


Is void a wrapper class?

543


What is an example of a boolean?

580


Is string an object?

670


What occurs when an object is constructed?

577


Why do people says “java is robust”?

566


What is an interoperable application in java ?

593