TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Java Tutorials

Java Interpreter

Overview

Java Interpreter reads Java byte code and executes them on the JVM running on different target systems. Java byte code is machine independent and can run on any machine where the JVM runs.(Write Once Run Anywhere)

To get the byte code, we need to compile the java program. The Java compiler, javac, takes the Java source .java file and translates it into instructions that the JVM can understand. The compiler puts these instructions into a Bytecode .class file.

Sample Java Source code .java file

Java Source Code

Java Interpreter

Java interpreter interprets the byte code and translates it to the machine native code that can be executed on JVM.

The Java VM is implemented by a Java interpreter i.e the java tool. Java interpreter takes the bytecode file and executes the instructions by translating them into instructions that the target computer can understand.

 

Java Interpreter

The java tool launches the Java Application. It does by starting a Java Runtime Environment(JRE), then loading a specified class, and by invoking that Java class’s main method. The main method is the entry point for the Java application.

—

Java Tutorials

Java Tutorial on this website:

https://www.testingdocs.com/java-tutorial/

For more information on Java, visit the official website :

https://www.oracle.com/java/

Related Posts

Download Greenfoot Windows

Java Tutorials /

Download & Install Greenfoot on Windows

Java Tutorials /

Java Static Code Analysis

Java Tutorials /

Java Testing Tools

Java Tutorials /

Handle Multiple Exceptions in Java

Exceptions_In_Java

Java Tutorials /

Exceptions in Java Programs

‹ Java Programming Language Features› Get Substring of Given String in Java

Recent Posts

  • Update draw.io on Windows
  • Install RAPTOR Avalonia on CentOS
  • Download RAPTOR Avalonia Edition on Windows
  • npm doctor command
  • Build & Run CLion Project
  • Create New CLion C Project on Windows
  • Configure CLion Toolchains on Windows
  • Launch CLion IDE on Windows
  • Activate CLion IDE
  • CLion IDE for C/C++ Development

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com