• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Why JVM is Called Virtual Machine?

By Abhishek Ghosh November 13, 2019 8:44 am Updated on November 13, 2019

Why JVM is Called Virtual Machine?

Advertisement

The virtual machine part inside the phrase “Java Virtual Machine” often confuses many peoples with full virtualization. A Java Virtual Machine is an example of application virtualization. The Java Virtual Machine converts the compiled Java code into machine language to run it on the host computer. At that time, there was a concept named WORA (Write Once Run Anywhere). Today, we still have the idea in the form of web applications. Java went to “native application”.

With langugage such as Turbo C, the compiler produces a platform dependent code, and there is no need for a Virtual Machine as the compiled Turbo C program can be executed directly by a physical CPU. In case of Java, the compiled code is a set of instructions for a virtual CPU which should work the same on every physical machine.
In this way, the designers of the Java language made the langugage platform independent. But since the code will run on a physical platform, they had to opt to put all the platform dependent code part in the Java Virtual Machine. The syntax of Java is largely looks like C++ but the things are different at backend. C++ is quite primitive makes it the choice for building most of basic things which interacts with hardware.

The Java Virtual Machine is not a virtual machine unlike a cloud server instance. No hardware other than the processor is actually virtualized in case of Java Virtual Machine. The JVM is a virtualized CPU plus some runtime like C++ or any other object oriented language has, plus it includes the system for garbage collection and other necessities. Java uses an automatic garbage collector to manage memory. Just-in-time (JIT) compilers that compile byte-codes to machine code during runtime were introduced to avoid the overhead of interpreting bytecode into machine instructions. So the Java Virtual Machine interprets or compiles the byte code into native machine instructions.

Advertisement

---

Why JVM is Called Virtual Machine

Java bytecode runs in a Java Runtime Environment. Java Virtual Machine (JVM) is the most important element of the Java Runtime Environment. The Java Virtual Machine inside the Java Runtime Environment analyzes and executes Java byte code. The Java Runtime Environment has the Java API and the Java Virtual Machine. The role of the JVM is to read the Java application through the Class Loader and execute it along with the Java API. Java Virtual Machine (JVM) does these jobs :

  1. Loads the code
  2. Verifies the code
  3. Executes the code
  4. Provides the run-time environment
  5. Provides the memory area
  6. Register set
  7. Provides a garbage collection heap
  8. Reports the fatal errors
  9. Provides a class file format

The JVM distributed by Sun/Oracle and IBM is commonly used.

Tagged With why is it called virtual dataport , why jvm is virtual machine
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Why JVM is Called Virtual Machine?

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • Java Virtual Machine : Overview and Principle

    Java virtual machine English is a fictional computer device simulated by specific software for each platform that executes programs compiled into Java bytecode.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy