Suppose I run two java programs simultaneously on the same machine. Will the programs run in a single instance of JVM or will they run in two different instances of JVM?
It depends on the platform and the JVM implementation, but typically they would run in separate VMs.