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);