1. java.util.Properties.load()

InputStream in   =     new   BufferedInputStream( new  FileInputStream(filename));
Properties pro 
=   new  Properties();
pro.load(in); 



2. java.util.ResourceBundle.getBundle()

ResourceBundle rb  =  ResourceBundle.getBundle(filename, Local.getDefault());

3. java.util.PropertyResourceBundle
InputStream in = new BufferedInputStream(new FileInputStream(filename));
ResourceBundle prb 
=  newPropertyResourceBundle(in);

4. java.lang.Class.getResourceAsStream()
InputStream in = JProperties.class.getResourceAsStream(filename));
Property pro = new Property();
pro.load(in);

5. java.lang.Class.getClassLoader().getResourceAsStream()
InputStream in = JProperties.class.getClassLoader().getResourceAsStream(filename));
Property pro = new Property();
pro.load(in);

6. java.lang.ClassLoader.getSystemResourceAsStream()
InputStream in = ClassLoader().getSystemResourceAsStream(filename));
Property pro = new Property();
pro.load(in);

7. javax.servlet.ServletContext.getResourceAsStream()
InputStream in = context.getResourceAsStream(filename));
Property pro = new Property();
pro.load(in);