Java Virtual Machine (JVM)

  1. System-Based Virtual Machines:

What is JRE?

Does JVM instance always reside in your computer?

  • Daemon Thread: This is a low priority thread which provide services for non-daemon thread. They are running on background by performing the tasks like Garbage collection.
  • Non-Daemon Thread: This is the main thread created my JVM. The non-daemon thread can creates another number of non-daemon threads until it specifies as daemon thread.

Major Ways JVM Gets Destroy

  1. When the non-daemon thread exit, the created JVM instance will be destroyed.

How Java becomes Platform Independent



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store