
Java Programming: Core Fundamentals
A comprehensive quick-revision guide for academic exams and global coursework.
Page 1: Introduction & Architecture of Java
1. What is Java?
• Java is a high-level, class-based, object-oriented programming language engineered to minimize
implementation dependencies.
• Developed by James Gosling at Sun Microsystems and launched in 1995.
• Core Philosophy: WORA (Write Once, Run Anywhere). Compiled Java code operates seamlessly across
all platforms configured with a compatible JVM.
2. The Core Architecture: JDK vs. JRE vs. JVM
• JVM (Java Virtual Machine): The engine that directly executes Java bytecode line-by-line. It is completely
platform-dependent.
• JRE (Java Runtime Environment): The runtime container consisting of the JVM + Essential Runtime
Libraries required to deploy applications.
• JDK (Java Development Kit): The absolute development workspace containing the JRE + Technical
Development Tools (compilers, debuggers).
* Structural Formula: JDK = JRE + Tools | JRE = JVM + Class Libraries
3. Key Features of Java
• Object-Oriented: Treats logical operations explicitly through objects and classes.
• Platform Independent: Converts code into an intermediate format called Bytecode (.class file).
• Robust: Enforces Automatic Garbage Collection and strict type checking to minimize memory leaks.
Page 2: Basic Syntax, Data Types & Variables
1. Structural Layout of a Basic Java Program
public class Main {
public static void main(String[] args) {
System.out.println("Hello, World!");
}
}
• public: Sets accessibility parameters to wide open.
• static: Allows the main method execution context without requiring initial class instantiations.
• void: Clarifies that no values are returned by this execution block.