This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Properties vs Environment Variables (Understood)  RSS feed

 
Shridhar Raghavan
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

http://download.oracle.com/javase/tutorial/essential/environment/properties.html

The link above to Sun's Java Doc explains a property object as "configuration tool while designing applications". That is to quote "an application capable of downloading files might use a property named "download.lastDirectory" to keep track of the directory used for the last download." Here the map "download.lastDirectory" serves as a configuration tool for some application.

http://download.oracle.com/javase/tutorial/essential/environment/env.html

The link above explains an environment variable as something the OS maintains to pass info to the instance of the invoked application.

The only question i have in mind is if i can create my own ENVIRONMENT VARIABLES, how are the two different concepts different in terms of usability?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!