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

Can we change the scope of the overridden method in the subclass?

1087


What is the disadvantage of java?

728


In the below example, what will be the output?

808


what is the significance of listiterator in java?

835


How to optimize the javac output?

822


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?

907


Can an object be null?

757


What is the purpose of the System class?

793


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

2138


Which method cannot be overridden in java?

810


What is java used for?

805


What are identifiers in java?

806


What does replaceall do in java?

715


Can we store variables in local blocks?

1075


How many types of operators are there?

742