• Post Reply Bookmark Topic Watch Topic
  • New Topic

In an Inner class if a variable is declared public is it accessible to other classes outside package  RSS feed

 
Ranch Hand
Posts: 1078
Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In an Inner class if a variable is declared public is it accessible to other classes outside package...If not why so despite being declared public??
 
Rancher
Posts: 618
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What were the results of your test code?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!