Java J2ME JSP J2EE Servlet Android

Java read properties files

Let's consider a properties files named "conf.properties" with the following contents..
server=oracle
date.format=dd-mm-rrrr hh24:mi:ss

we can read the properties of the this file as following way with java..

Properties props = new Properties();
props.load(new FileInputStream("conf.properties"));
String server = props.getProperty("server");
String date = props.getProperty("date.format");