- ✕This summary was generated using AI based on multiple online sources. To view the original source information, use the "Learn more" links.
The Properties class in Java is a subclass of Hashtable that represents a persistent set of properties. It is used to maintain a list of values in which both the key and the value are strings. This class is part of the java.util package and is commonly used to manage configuration data, such as application settings and system properties.
Key Features
Persistence: Properties can be saved to a stream or loaded from a stream, making it easy to store and retrieve configuration data from files.
Default Properties: A Properties object can specify another Properties object as its default. If a key is not found in the main Properties object, the default Properties object will be searched.
Thread-Safety: Properties objects do not require external synchronization, allowing multiple threads to share a single Properties object safely.
System Properties: The Properties class can be used to retrieve system properties using the System.getProperties() method.
Constructors
Properties (Java Platform SE 8 ) - Oracle
Because Properties inherits from Hashtable, the put and putAll methods can be applied to a Properties object. Their use is strongly discouraged as they allow the caller to insert entries whose keys or …
See results only from docs.oracle.comDictionary
The Dictionary class is the abstract …
Properties
We would like to show you a description …
Java Se 9 & JDK 9
The Properties class represents a …
String
The String class represents character …
Hashtable
As of the Java 2 platform v1.2, this class …
IllegalArgumentException
Class IllegalArgumentException …
Enumeration
An object that implements the …
Deprecated
Deprecated API Contents Deprecated …
Properties Class in Java - GeeksforGeeks
Jul 23, 2025 · Properties is a subclass of Hashtable. It is used to maintain a list of values in which the key is a string and the value is also a string i.e; it can be used to store and retrieve string type data …
java - How does a '.class' property work? - Stack Overflow
Apr 9, 2012 · The .class property is an instance of Class that represents type information. You can use it to do reflective style calls to instantiate something you don't know the type of at compile time.
Getting Started with Java Properties - Baeldung
Nov 16, 2016 · Learn how to work with key-value pairs in Java using the java.util.Properties class.
Java - The Properties Class - Online Tutorials Library
Properties is a subclass of Hashtable. It is used to maintain lists of values in which the key is a String and the value is also a String.
Searches you might like
Java - The Properties Class: A Comprehensive Guide
What is the Properties Class? The Properties class in Java is a subclass of Hashtable and represents a persistent set of properties. It is used to store and manage configuration information in the form of …
Java Classes Properties: Definition And Declaration Of Member …
In Java, class properties, also known as fields or attributes, represent the state or data of an object. These properties define the characteristics of an object, and their values can be different for each …
Properties class in Java - Tpoint Tech
Mar 17, 2025 · To get information from the properties file, create the properties file first. Now, let's create the java class to read the data from the properties file. oracle. Now if you change the value of …
Java Properties - Jenkov.com
Aug 18, 2019 · To use the Java Properties class you must first create a Properties instance. You do so via its constructor and the Java new instruction. Here is an example of creating a Java Properties …
Lesson 18: Properties in Java - Hard Knock Java
In virtually all IT environments, program behavior can be controlled at run time by properties. To facilitate obtaining (and occasionally preserving) the values of these properties, Java provides the …