File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Properties vs Environment Variables (Understood) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Properties vs Environment Variables (Understood)" Watch "Properties vs Environment Variables (Understood)" New topic

Properties vs Environment Variables (Understood)

Shridhar Raghavan
Ranch Hand

Joined: May 27, 2010
Posts: 71

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.

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.
subject: Properties vs Environment Variables (Understood)
Similar Threads
Passing String array as argument to main() method
doubt in chapter 6- Regex from Kathy Sierra Book
Saving a resource on a client--best practices question
General concept
What is the main usage of "String[] args" in public static void main(String[] args)?