0

Is Java Virtual Machine starts before user logged in or it's start after boot windows.?

TheLostMind
  • 35,966
  • 12
  • 68
  • 104
Arvin Jayanake
  • 1,475
  • 3
  • 14
  • 26
  • 1
    It starts when you run a java program. And each program runs in its own VM. It shuts down when all threads in it are Daemon threads. – TheLostMind Jun 23 '14 at 10:18
  • Java isn't preinstalled in any Windows version http://stackoverflow.com/questions/2163795/java-pre-installed-in-windows-and-linux . So the answer is: in general no. Of course: You can configure you computer to have a JVM started by the OS prior to logging in (a JVM is started if a Java program is started). – Christian Fries Jun 23 '14 at 10:45

4 Answers4

2

Every time you start a java program, a new instance of the Java Virtual machine is started. It stops when the program ends.

In the case of a java applet, the browser will invoke the virtual machine itself.

Jamie Cockburn
  • 7,379
  • 1
  • 24
  • 37
1

When a Java application starts, a runtime jvm instance is born. When the application completes, the instance dies. If you start four Java applications at the same time, on the same computer, using the same concrete implementation, you'll get four Java virtual machine instances. Each Java application runs inside its own Java virtual machine.

vikrant
  • 399
  • 3
  • 12
0

JVM starts when it's required, in other words as soon as you need an environment to run your Java code, meaning when you start your application.

Try googling for "when JVM starts", it should yield a lot of results which address this question (in Java and also for other languages using JVM). For example this page. Look for "The lifetime of a Java Virtual Machine".

Dropout
  • 13,653
  • 10
  • 56
  • 109
0

In Windows "Java Virtual Machine" is simply "java.exe" executable.

It will start whey you will start it - manually, by putting it to autorun or by creating Windows Service.

It is the same as any other background application.

Sergey Alaev
  • 3,851
  • 2
  • 20
  • 35