Skip to content

Chapter 1 of 37

Introduction to Java

Trace Java history and understand the JVM, JDK, JRE, bytecode, and toolchain.

26 minutes 10 quick checksBy Subha Prasad
Lesson 1 of 37Course navigation

Lesson content

Read, practise, then check your understanding

Java was created at Sun Microsystems by James Gosling’s team and released publicly in 1995. Its core promise—compile once to portable bytecode, then run on a compatible virtual machine—made it important for servers, Android’s Java-language ecosystem, enterprise systems, and developer tools. OpenJDK is the open-source reference implementation; Java evolves through regular feature and long-term-support releases.

From source to execution

The JDK supplies javac, java, documentation, debugging, packaging, and runtime tools. javac compiles source to .class bytecode. The JVM verifies, loads, interprets, and JIT-compiles hot code. The JRE describes the JVM plus runtime libraries, though modern distributions commonly ship modular runtimes rather than a separate JRE download.

public class Hello {
    public static void main(String[] args) {
        System.out.println("Hello, Java!");
    }
}

Compile with javac Hello.java and run with java Hello. Java provides garbage collection, strong runtime checks, exceptions, reflection, concurrency, and a broad standard library. Portability still requires care around files, encodings, native integrations, versions, and deployment configuration.

Knowledge check

Answer every question correctly to complete this chapter.

Which statement best describes JVM?
Which Java term matches this description: The virtual machine that verifies and executes Java bytecode.
Which statement best describes JDK?
Which Java term matches this description: The development kit containing the compiler, tools, and runtime.
Which statement best describes JRE?
Which Java term matches this description: The runtime components needed to execute Java applications.
Which statement best describes bytecode?
Which Java term matches this description: Platform-neutral instructions stored in class files.
Which statement best describes JIT compiler?
Which Java term matches this description: A runtime compiler that turns hot bytecode into native machine code.

0 of 10 checks passed

Your progress is saved on this device.