CuriousMind
CuriousMind

Reputation: 8903

How one software runs another software

I am baffled with the statement/s which I have often read:

A Java program runs inside (or by) JVM. The doubt which I have is, how one Java program is run by another program i.e. by JVM.

How can one software read other software?

This might seem very trivial or no sense question, however the more I think about this, the more doubt I get "how one software can run other software".

Any help to understand this, greatly appreciated.

Upvotes: 0

Views: 49

Answers (1)

Peter Lawrey
Peter Lawrey

Reputation: 533442

The doubt which I have is, how one Java program is run by another program i.e. by JVM.

The JVM is a program. It

  • read the class file which contains the compiled Java class.
  • it has an interpretor which performs the actions in the Java byte code.

The code can be compiled to native code which the JVM calls to speed up execution.

Upvotes: 2

Related Questions