• Post Reply Bookmark Topic Watch Topic
  • New Topic

Nested Class  RSS feed

 
Faraz Ka
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

What is the main advantage of nested class?
Rather making one class reside inside other, can't we achieve all by making it two separate classes with its own individuality?

Thanks,
Faraz
 
Jhonson Fernando
MyExamCloud Software Support
Ranch Hand
Posts: 692
2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can find answer for this question here .
 
Darryl Burke
Bartender
Posts: 5167
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might also like to go through the Oracle tutorial on When to Use Nested Classes, Local Classes, Anonymous Classes, and Lambda Expressions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!