I have a web application I came accross
InputStream iStream= Thread.currentThread().getContextClassLoader().getResourceAsStream("Test.Properties");
I am trying to understand what difference will it make if I write
Properties p = new Properties();
p.load(new BufferedReader(new FileReader("Test.properties")))
Can any one let me know how these two approaches are different?