title: What is the difference between System.getProperty and properties.getProperty in Java
body: <p>I have a properties file, named <code>prop.properties</code>. In my main code, I have both <code>System.getProperty()</code> and <code>properties.getProperty()</code>. </p>
  
  <p>My question is: are they both get property from <code>prop.properties</code> or they will get property from different places, <code>properties.getProperty()</code> get property from <code>prop.properties</code> and <code>System.getProperty()</code> get property from other place.</p>