Java API Tutorial - Java Properties(Properties defaults) Constructor








Syntax

Properties(Properties defaults) constructor from Properties has the following syntax.

public Properties(Properties defaults)

Example

In the following code shows how to use Properties.Properties(Properties defaults) constructor.

import java.util.Properties;
//from   ww  w  .  ja v a  2s . c  om
public class Main {

   public static void main(String[] args) throws Exception {
      Properties defaultPro = new Properties();

  
      Properties pro = new Properties(defaultPro);

   }
}