Home » Core Java » util » Properties


Properties File Java Example

In this example, we shall show you how to use property files in java. Java property files are an easy and effective way to organize key value pairs in plain text files. Property files support two formats Text file format – In this  format, different key, value pairs are separated by newline character XML format – This is standard XML format. ...

Read More »

java.util.Properties Example

In this example we will show how to use java.util.Properties class. Properties class is a subclass of Hashtable and represents a persistent set of properties. The Properties are key/value pairs that can be saved to a stream or loaded from a stream. Each key and its corresponding value in the property list is a string. The Properties class offers you ...

Read More »

Convert XML File into Properties object

In the previous tutorial we saw how to convert Properties object to XML Format and write it to XML File. In this tutorial we are going to show you how to the opposite, that is convert an XML File into a Properties object in Java.                   Here is the XML File that ...

Read More »

Convert Properties into XML File

With this example we shall show you how to convert a java.util.Properties object to XML format and write it to a File. The Properties class is a very popular Java utility and it can be used in numerous occasions in a Java application. And because of that it is quite useful to store these properties to an XML File and ...

Read More »