• Post Reply Bookmark Topic Watch Topic
  • New Topic

System Properties Scope  RSS feed

 
noga knaz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

What is the scope of System Properties? JVM or Classloader?

Thanks
 
Martijn Verburg
author
Bartender
Posts: 3275
5
Eclipse IDE Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
this IBM article may help.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Static variables are normally scoped to the classloader that loads their class. This is as true of the System.getProperties() object as it is of any other object. But the difference is that java.lang.System is loaded by the boot classloader, of which there is just one -- meaning that effectively, system properties are scoped to the JVM.
 
noga knaz
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!