• Post Reply Bookmark Topic Watch Topic
  • New Topic

difference between public static and private static with instance variables???  RSS feed

 
Ahmed M. Omar
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between public static and private static when we declare instance variable in a class (regardless of the accessibility)

are that affect on the initialization or finalization of the object

regards
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nothing, besides the accessibility.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!