Is java compiler-based or Interpreter based ?
Compiler-Based language: The language whose source code is executed all at a time such language is called compiler based language. for eg C, C++
Interpreter-Based language: The language whose source code is executed line by line. such language is called Interpreter-based language. for eg java , python
Java is compiler based or Interpreter based language?
Java is both compiler as well as interpreter based language. Internally python too is compiler as well as interpreter based language.
Java Development Kit
JDK consists of
1. JVM
2. compiler (javac)
3. Interpreter/Loader(java)
4. Archiver (jar)
Java Archiver(JAR) :
-contains compressed class files generated during javac filename.java
-we use jar technique to distribute java code to other projects
-for direct execution without ide
Java Virtual Machine(JVM):
JVM engine is responsible for creating an environment to drive java code or java application. It converts the byte code to machine code. It is part of JRE.
Architecture of JVM:
C language compile and linking process:
Java language compile and interpreter process (no linking in java)
class loader loads all classes in RAM.