Java Tutorial

By Xah Lee. Date: . Last updated:
xah java logo

This Java tutorial is for beginners, example based. Spend 30 minutes on each item per day, in order. After a month, you'll be a self-sustaining Java programer.

The code here are tested with Java 1.8.0.

If you have a question, put $5 at patreon and message me.

Java

  1. Install
  2. javac java jar javadoc

Java Basics

  1. Print String
  2. Strings
  3. Power Function
  4. Java Types and Type Conversion
  5. Function
  6. Arrays

Class, Inheritance

  1. extends
  2. Constructor
  3. Constructor Return Type
  4. Extending a Class that has Explicit Constructors
  5. static
  6. this
  7. super
  8. Access Specifiers

Abstract class, Interface

  1. abstract
  2. Interface

Package

  1. Package

Misc

  1. Collection, Map
  2. Read/Write File
  3. Convert File Encoding
  4. Complex Numbers in Java
  5. Unicode
  6. Number Literals