title: Java heap arguments specified twice, which one will be finally picked
body: <p>I executed a program java -Xms256m -Xmx1G Sample.java -Xms2G -Xmx6G. I tested the program, it picked the first one i.e -Xms256m -Xmx1G. I was expecting it would pick the latter one. Any documentation where I can find the explanation?</p>