Explore java — 1
Compiler:
- It is impossible for humans to write the program in byte code. It is must to have compiler.
- Compiler compiles the java code to byte code. It gives source file
- Java being an interpreter language, the virtual machine had to translate text-editor source code during runtime, a Java program would run very slowly.
- Java is typed language. So, compiler won’t allow to hold data of wrong type.
- Compiler helps in one of the most important feature in java — dynamic binding. During runtime, it can detect and protect the dangers like trying to use objects for different use.
JVM:
- JVM is responsible for converting the byte code to machine readable code.
- JVM is code compatibility as it eases a programmer’s job to write code only once and run anywhere.
- It allows to develop any application of any complexity.
- JVM can run in both client and server.
- JVM provides the class loader to load the java classes.
Thanks for reading! Hope it is useful. Follow for more articles.