answersLogoWhite

0

Is jvm a compiler

Updated: 8/11/2023
User Avatar

Wiki User

7y ago

Best Answer

Basically they do the same: converting from one level of language into another. A compiler converts high level language (programming language like java) into machine-language. That is language a computer understands.

An interpreter converts high level language into an intermediate level. When a program is exectuted, that intermediate level is reconverted to machine language.

User Avatar

Wiki User

12y ago
This answer is:
User Avatar
More answers
User Avatar

Learn bay

Lvl 8
2y ago

As the Java compiler compiles the source code into the Java bytecode. In the same way, the Java interpreter converts or translates the bytecode into the machine-understandable format i.e. machine code, after that the machine code interacts with the operating system.

To learn more about data science please visit- Learnbay.co

This answer is:
User Avatar

User Avatar

Wiki User

12y ago

java compiler source code to convert Bytecodes with .class file create

Interpreter translate to one line at a time to machine understanding code

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

No. jvm is an interpreter/executor that processes bytecode that was created by a Java compiler processing a Java program.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is jvm a compiler
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Is JVM is part of compiler?

no jvm is not a part of java compiler


Difference Between interpreter and compiler in java application?

Due to platform independence, a Java compiler will interpret Java source code into Java Byte Code and pass to the JVM, which will pass machine understandable code through to cpu. (clarification needed).A conventional compiler converts source code directly to machine code.(clarification needed).


Is java interpreter or compiler?

Java has both a compiled and an interpreted stage.1) The programmer writes his source codes (.java extension); a compiler will compile this to bytecode (.class extension).2) When the end-user runs the .class program, the JVM (Java Virtual Machine) will interpret this.


Why you need compiler?

You don't need if you don't want to develop computer programs. But if you want you should use it, for you can not make programs without a compiler. Compiler is the programs that makes the computer program out of the code


What do you get when you compile a java program?

The java interpreter or JVM (Java Virtual Machine) is not able to execute the java source code for a program. The java source code first needs to be compiled into bytecode that can be processed by JVM. Producing bytecode make the program platform independent as each platform has its own JVM. It is also possible to directly write bytecode, bypassing the need to compile, but that would be tedious job and also not good for security purpose as the compiler checks for various errors in a program.

Related questions

Is JVM is part of compiler?

no jvm is not a part of java compiler


Is jvm a compiler or an interpreter?

JVM is an Interpreter because it interprets the Java Byte Code which it is feed and then it executes it line by line.


What is the Byte code definition?

Java compiler produces an intermediate code after compilation, understandable by JVM is called Byte Code.


Difference Between interpreter and compiler in java application?

Due to platform independence, a Java compiler will interpret Java source code into Java Byte Code and pass to the JVM, which will pass machine understandable code through to cpu. (clarification needed).A conventional compiler converts source code directly to machine code.(clarification needed).


Can the main method declared be final?

Sure, it can be declared final! It doesn't matter if it is declared final, the JVM will still find it and run it, and the compiler doesn't care.


Is java interpreter or compiler?

Java has both a compiled and an interpreted stage.1) The programmer writes his source codes (.java extension); a compiler will compile this to bytecode (.class extension).2) When the end-user runs the .class program, the JVM (Java Virtual Machine) will interpret this.


Why you need compiler?

You don't need if you don't want to develop computer programs. But if you want you should use it, for you can not make programs without a compiler. Compiler is the programs that makes the computer program out of the code


What is purpose of JVM?

JVM stands for Java Virtual Machine The JVM is the system in which our Java programs are executed.


What do you get when you compile a java program?

The java interpreter or JVM (Java Virtual Machine) is not able to execute the java source code for a program. The java source code first needs to be compiled into bytecode that can be processed by JVM. Producing bytecode make the program platform independent as each platform has its own JVM. It is also possible to directly write bytecode, bypassing the need to compile, but that would be tedious job and also not good for security purpose as the compiler checks for various errors in a program.


What is needed to run java?

You must have the Java Run-time Environment installed on your computer. Steps: 1. Open Command Prompt 2. Enter the command: javac class.java 3. Enter the command: java <classfilename> (without the .java or .class extension) The javac command will compile your java source file and create a class file. The java command will execute or run your java class file.


How one jvm call another jvm?

As of Java 6 every JVM runs an MBeanServer which you can connect to via a JMX RMI connection and then invoke methods on services hosted in the remote JVM's Mbean server.


Is JVM a software or hardware?

JVM stands for Java Virtual Machine, it is software.