Here you can find the source of load(String fileName)
public static Properties load(String fileName)
//package com.java2s; import java.io.IOException; import java.io.InputStream; import java.util.Properties; public class Main { public static Properties load(String fileName) { InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream(fileName); return load(is); }//from ww w . ja v a 2s . com public static Properties load(InputStream is) { Properties properties = new Properties(); try { properties.load(is); } catch (IOException e) { e.printStackTrace(); throw new IllegalArgumentException(e.getMessage()); } return properties; } }