0% found this document useful (0 votes)
3 views3 pages

Java 4

The document outlines the flow of a Java program from High Level Language (HLL) to Intermediate Level Language (ILL) and finally to executable code. It compares compilers and interpreters, highlighting their differences in translation methods, error handling, execution speed, and file generation. Additionally, it includes a simple Java class example that adds two numbers and prints the result.

Uploaded by

rojasri
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

Java 4

The document outlines the flow of a Java program from High Level Language (HLL) to Intermediate Level Language (ILL) and finally to executable code. It compares compilers and interpreters, highlighting their differences in translation methods, error handling, execution speed, and file generation. Additionally, it includes a simple Java class example that adds two numbers and prints the result.

Uploaded by

rojasri
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

JAVA FLOW OF PROGRAM:

[Link](High Level Language)

[Link](Intermediate Level Language)

[Link] CODE
JAVA'S ARCHITECTURE:

JAVA DEVELOPMENT KIT(JDK):

COMPILELR VS INTERPRETER

🟢 Compiler

 Translates the entire program at once

 Converts source code into machine code

 Errors are shown after compilation

 Execution is faster

 Creates a separate executable file

🔵 Interpreter

 Translates one line at a time

 Executes code line by line

 Stops at the first error

 Execution is slower

 No separate executable file


class AddTwoNumbers {

public static void main(String[] args) {

1. int a = 10;

[Link] b = 20;

3. int sum = a + b;

[Link]("Sum = " + sum);

You might also like