2:19 am - Tuesday October 24, 2017

To get default values for any keys not found in the property list Properties(Properties defaults) constructor

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

BACK

This tutorial explains how to get default values for any keys not found in the property list Properties(Properties defaults) constructor.Properties defaults a property list that contains default values for any keys not found in this property list.


import java.util.Properties;
public class PropertyDefaultConstructor
{
    public static void main(String[] args)
    {
        Properties defaultPro = new Properties();
        Properties pro = new Properties(defaultPro);
        System.out.println(pro);
    }
}


 

Output

{}

BACK

 

Filed in: Java Examples

Comments are closed.