Java: Build Anything, Run Everywhere

Shriira Press

Preface

Master object-oriented Java and the JVM — the language behind enterprise systems and Android.

Welcome to Java: Build Anything, Run Everywhere.

Java compiles to portable bytecode that runs anywhere a JVM does, manages memory for you, and powers enterprise backends, Android, and big-data systems the world over. This free, example-driven book teaches it from the ground up: the JVM and the compile-run model, types and control flow, then the heart of Java — classes, objects, inheritance, polymorphism, and interfaces — followed by the Collections Framework and generics, exception handling, how the JVM's garbage collector manages memory, and the modern features (lambdas, streams, records) that make today's Java concise. Eleven focused chapters with runnable code and clear diagrams. Learn the language that builds anything and runs everywhere.

This title is part of the ShriIra library and is free to read in full, right here — our small contribution to making world-class knowledge easy to reach.

A note on reading it: open the Contents menu at the top of the reader to jump between chapters, use the Aa menu to set a comfortable text size, theme (light, sepia, or night), and single- or two-page layout. Your place is saved automatically, so you can always pick up where you left off.

We hope it serves you well.

— Shriira Press

Contents

  1. Chapter 1 — What Java Is and the JVM
  2. Chapter 2 — Getting Started
  3. Chapter 3 — Variables, Types, and Operators
  4. Chapter 4 — Control Flow
  5. Chapter 5 — Classes and Objects
  6. Chapter 6 — Inheritance and Polymorphism
  7. Chapter 7 — Interfaces and Abstract Classes
  8. Chapter 8 — Collections and Generics
  9. Chapter 9 — Exception Handling
  10. Chapter 10 — Memory and Garbage Collection
  11. Chapter 11 — Modern Java and Good Practice
0%
1/1