O'Reilly logo

PURE Java™ 2 by Kenneth Litwak

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Properties

Anyone who has worked with Microsoft Windows for very long has encountered .ini files or the Registry. Both .ini files and the Registry contain configuration information. Similar information is often placed in a .login or .cshrc file in UNIX. Java also has a facility for storing application-specific information: a Properties object, which can be stored in a file if necessary. Many programs need configuration information, such as the appropriate directory to look in for a specific file, or the name of a host to use to find a database or the port to use for starting the JavaIDL orb. The Java way to deal with the need for such configuration values is to create a file using a Properties object, which consists of name/value pairs. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required