What does a jvm do? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

What does a jvm do?

15th Jul 2016, 6:25 AM
soumik
12 Answers
+ 6
jvm means java virtual machine. when we compile a java program it converts it into some .class file extensions. These .class file contains some special character. So when we want to run a java file we need to run that .class file. So JVM helps in decoding that file into executable file. So you can run your java file in any computer if you have .class file and JVM compiler
15th Jul 2016, 9:41 AM
Dhiman Das
Dhiman Das - avatar
+ 2
1.provide platform independent 2.translate bytecode to machine language
10th Dec 2016, 10:57 AM
Raj Singh
Raj Singh - avatar
+ 1
JVM translates java code to machine language
15th Jul 2016, 6:42 PM
Iskandar Ashurov
Iskandar Ashurov - avatar
+ 1
convert the byte code to machine specific code
15th Jul 2016, 8:14 PM
deepanshu7211
+ 1
It creates a virtual machine to run java program, it means it make another machine which have its different components such as ram, processor etc.. By sharing the resources of your computer with the virtual machine because virtual machine is just a concept and it doesn't have any seperate real hardware. ☺
16th Jul 2016, 5:23 AM
Chander Mohan Pundhir
Chander Mohan Pundhir - avatar
+ 1
It interprets Java bytecode(stored in .class file) to enable computer's processor to execute a Java program's instructions(code written in .java file).
16th Jul 2016, 1:40 PM
WPimpong
WPimpong - avatar
+ 1
It makes it possible to install and play Minecraft PC on your phone... if your clever enough to figure out the workaarounds
7th Dec 2016, 7:47 AM
Nate
0
it reads .class file as its task is to interpret .class files which is converted from .java file by help of java compiler!
15th Jul 2016, 7:14 AM
Kartikey Saxena
Kartikey Saxena - avatar
0
Java program execution follows 5 majors steps: Edit Compile Load Verify and Execute 1. Edit - Here the programmer uses a simple editor or a notepad application to write the java program and in the end give it a .java extension 2. Compile - In this step the programmer gives the javac command and the .java files are converted into bytecode which is the language understood by the java virtual machine (and this is what makes java platform independent language). Any compile time errors are raised at this step 3. Load - The program is then loaded into memory. This is done by the class loader which takes the .class files containing the bytecode and stores it in the memory. The .class file can be loaded from your hard disk or from the network as well 4. Verify - the bytecode verifier checks if the bytecode loaded are valid and do not breach java's security restrictions 5. Execute - The JVM interprets the program one bytecode at a time and runs the program
13th Aug 2016, 4:37 PM
Gowtham krvz kv
Gowtham krvz kv - avatar
0
first the code you create is compiled by the compiler and get converted into Java bytes and then JVM converts Java bytes to a machine understandable language
8th Dec 2016, 11:08 AM
Ajay Ramamurthy
Ajay Ramamurthy - avatar
0
it's a decoder that decodes java class files into system programme files
8th Dec 2016, 3:49 PM
Vikram Meena
Vikram Meena - avatar
- 4
it translates source code to byte code
19th Jul 2016, 3:38 PM
ESWAR
ESWAR - avatar