title: If I specify a System property multiple times when invoking JVM which value is used?
body: <p>If I specify a system property multiple times when invoking the JVM which value will I actually get when I retrieve the property? e.g.</p>
  
  <pre><code>java -Dprop=A -Dprop=B -jar my.jar
  </code></pre>
  
  <p>What will be the result when I call <code>System.getProperty("prop");</code>?</p>
  
  <p>The <a href="http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html" rel="noreferrer">Java documentation</a> on this does not really tell me anything useful on this front.</p>
  
  <p>In my non-scientific testing on a couple of machines running different JVMs it seems like the last value is the one returned (which is actually the behavior I need) but I wondered if this behavior is actually defined officially anywhere or can it vary between JVMs?</p>