Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Glenn Duncan   on Apr 08 In Java Category.

  
Question Answered By: Beatriz Silva   on Apr 08

Static inner classes are used rarely. Because when you want use the
main class's members(property & methods)in the inner class, you should
new an object of the main class.

We usually use non-static  inner class  so we have access to all
properties and methods of main class without doing new.

Share: 

 

This Question has 5 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on nested class Or get search suggestion and latest updates.


Tagged: