1.1 Java Fundamentals
Introduction
Java is a general-purpose, object-oriented, statically-typed language designed to run on any device via the Java Virtual Machine (JVM). Every Java application starts life as human-readable source code (.java files), gets compiled to platform-independent bytecode (.class files), and is then executed by the JVM — the "write once, run anywhere" promise that made Java a dominant enterprise and Android language.
Key Concepts
Java Syntax
Code Examples
`public class HelloWorld` declares a class named HelloWorld — the file must be saved as HelloWorld.java. `main` is where the JVM starts execution. `System.out.println` writes a line of text to the console.