Java

A robust, object-oriented language designed for portability, powering enterprise systems, Android apps, and more.

Object-Oriented
Imperative
Concurrent
Intermediate
1995
James Gosling (Sun Microsystems)

Overview

Java is a high-level, class-based, object-oriented programming language designed to have as few implementation dependencies as possible. Its "write once, run anywhere" philosophy means compiled Java code runs on all platforms that support the JVM without recompilation. Java remains one of the most popular programming languages, particularly for enterprise server-side applications.

Key Features

  • Platform independence — JVM enables cross-platform execution
  • Strong type system — Compile-time type checking prevents many common errors
  • Automatic memory management — Garbage collection handles memory lifecycle
  • Multithreading — Built-in support for concurrent programming
  • Mature ecosystem — Spring, Hibernate, Maven, Gradle

Code Example

java
import java.util.List;
import java.util.stream.Collectors;

public class Main {
    public static void main(String[] args) {
        List<String> names = List.of("Alice", "Bob", "Charlie", "Diana");

        String result = names.stream()
            .filter(name -> name.length() > 3)
            .map(String::toUpperCase)
            .collect(Collectors.joining(", "));

        System.out.println(result); // ALICE, CHARLIE, DIANA
    }
}

Learning Resources

Learning Path

30 topics across 7 sections

1Basics

Java fundamentals and the JVM ecosystem.

2OOP

Object-oriented programming — Java's core paradigm.

3Collections & Generics

Java's powerful data structure framework.

  • Collections Framework — List, Set, Map, Queue — ArrayList, HashMap, TreeSet
  • Generics — Type parameters, bounded types, wildcards, and type erasure
  • Iterators — Iterator, ListIterator, for-each, and Iterable
  • Streams API — Stream operations — filter, map, reduce, collect, and parallel streams

4Exception Handling & I/O

Robust error management and file operations.

  • Exceptions — try/catch/finally, checked vs unchecked, custom exceptions
  • File I/O — BufferedReader, FileWriter, NIO.2, Path, and Files
  • Serialization — Serializable, ObjectInputStream/OutputStream, and transient

5Concurrency

Multi-threaded programming in Java.

6Modern Java

Post-Java-8 features and patterns.

  • Records — Immutable data carriers (Java 16+)
  • Pattern Matching — instanceof pattern, switch expressions, and sealed classes
  • Modules — Java Platform Module System (JPMS) and module-info.java
  • Spring Boot — Dependency injection, REST APIs, and production-ready services

7Advanced Java & Ecosystem

Enterprise-level features and framework internals.