> ## Documentation Index
> Fetch the complete documentation index at: https://learn.acadlink.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction to Java

> History, features, and structure of the Java programming language

# Java Programming Introduction

Java is a **general-purpose, object-oriented programming language** created by **James Gosling** at Sun Microsystems and released in **1995**. Its core design goal was portability — Java code compiles to bytecode that runs on the **Java Virtual Machine (JVM)**, summed up in the phrase "write once, run anywhere."

Java is **statically typed**, strictly object-oriented, and includes automatic memory management through garbage collection. It's widely used for enterprise backends, Android apps, and large-scale systems.

***

## Why Learn Java?

* Platform-independent thanks to the JVM.
* Strong typing catches many errors at compile time.
* Backbone of Android development and enterprise software.
* Built-in garbage collection simplifies memory management.

***

## Structure of a Java Program

```java theme={null}
public class Main {
    public static void main(String[] args) {
        System.out.println("Hello, World!");
    }
}
```

| Component                                | Purpose                                             |
| ---------------------------------------- | --------------------------------------------------- |
| `public class Main`                      | Every Java file's main content lives inside a class |
| `public static void main(String[] args)` | Entry point every Java program starts from          |
| `System.out.println()`                   | Prints output to the console                        |

<Info>
  This is a starter page — more Java topics (OOP, collections, exception handling) will be added here as modules, the same way the C Language section is structured.
</Info>
