A runtime instance of the Java virtual machine has a clear mission in
life: to run one Java application. When a Java application starts, a
runtime instance is born. When the application completes, the instance
dies. If you start three Java applications at the same time, on the
same computer, using the same concrete implementation, you’ll get
three Java virtual machine instances. Each Java application runs
inside its own Java virtual machine.
我正在阅读关于运行时实例的这篇文章,我只是不清楚上面的行.
public class Test1 {
public static void main(String args[]) {
if (args.length > 0) {
try {
for (int i = 0; i < args.length; i++) {
System.out.println("Args" + args[i]);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
}
当我运行上面的类时,运行时实例就诞生了.一旦完成它的操作,运行时实例就会消失.
>让我们把stackoverflow.com托管在网络上的一些地方,应用程序的一个运行时实例足以为人们提供服务,或者根据负载和流量,我们在不同的服务器/计算机上创建相同应用程序的不同实例.您是如何以及何时决定我们需要创建同一个应用程序的不同实例?
>这里具体实施的含义是什么?不同的具体实现怎么样?
我很抱歉,如果我的问题在任何方面都很模糊,我正在学习java,但纯粹是在HTML / CSS和JS上工作.