How to implement mathematical expression in Java?

How is it possible to implement the JVM in Java without using a second virtual machine?

  • When I heard about the Jikes RVM project, it seemed very confusing. What does it mean to implement a JVM in Java without a second virtual machine? Is there some "core" part of the engine which is written in C? If not, how are Java commands translated into machine-specific code?

  • Answer:

    Jikes includes a bootstrap written in C. All it does is to load up a boot image file, containing native code, which will be generated during the build process. (That build process can be done using an existing JVM, though once that is done the existing JVM can be discarded and Jikes can build itself.) http://jikesrvm.org/Building+the+RVM

Joshua Engel at Quora Visit the source

Was this solution helpful to you?

Other answers

Remember that Java is not an interpreter.  Its a mixed mode interpreter/compiler.  As has already been explained, code originally written in Java and compiled by the VM can be stored as compiled code to form the bootstrap layer of the VM.

Jeff Kesselman

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.