• 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

This Article Has Been Shared 923 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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?

  • Free Cooling Methods for Data Centers Running Virtualization

    Free Cooling Methods are becoming more and more popular because they can offer the recurrent cost reduction in Data Centers deploying Virtualization Technology.

  • Virtual Memory and Virtual Memory Management

    Virtual memory is a special memory management in a computer which is to be managed virtually working on address space associated with operating system.

  • Cloud computing as a Solution for Virtual Desktops and Applications

    Cloud computing as a solution to the delivery of virtual desktops and applications in the corporate, academic and research purposes becoming more useful.

  • Cloud Computing and Multitenancy : Rhymes With Risks

    Cloud Computing and Multitenancy has relationship. Both relies on using a single resource and distribution to multiple clients. Risk in both cases depends.

  • Application Should Dictate the Virtualization Platform Not Vice Versa

    Application should dictate the best virtualization platform, not vice versa. The day when all applications were virtualized on a single hypervisor is over.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Software Modernization? January 21, 2021
  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021
  • What is a Loosely Coupled System? January 17, 2021
  • How To Repack Installed Software on Debian/Ubuntu January 16, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, "Why JVM is Called Virtual Machine?," in The Customize Windows, November 13, 2019, January 21, 2021, https://thecustomizewindows.com/2019/11/why-jvm-is-called-virtual-machine/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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