Skip to content

Learn Java with uByte

Learn Java programming for free with uByte. Interactive Java tutorials for beginners — write and run real code in your browser.

All Tutorials

1

Getting Started with Java

Write your first Java program, understand the class structure, and learn how Java compiles and runs.

beginner10 min
2

Variables and Types in Java

Explore Java's primitive types, String, type casting, var keyword, and constants with final.

beginner15 min
3

Output and Formatting in Java

Master System.out.printf, String.format, StringBuilder, and text blocks in Java.

beginner15 min
4

Control Flow in Java

Master if/else, switch, and ternary operators to make decisions in your Java code.

beginner15 min
5

Loops in Java

Master for, while, and for-each loops to repeat code and iterate over collections.

beginner12 min
6

Arrays and ArrayList in Java

Work with fixed-size arrays and dynamic ArrayList collections in Java.

beginner15 min
7

HashMap and Maps in Java

Store and look up key-value pairs with HashMap and the Map interface.

beginner12 min
8

Methods and Functions in Java

Define and call methods; pass arguments and return values.

beginner12 min
9

References and Memory in Java

Understand references, object identity, and how Java passes objects by reference value.

intermediate10 min
10

Classes and Objects in Java

Define classes, create objects, and use constructors and fields.

beginner15 min
11

Instance Methods and Overloading in Java

Add behavior to classes with instance methods and overload methods by signature.

beginner12 min
12

Interfaces and Abstract Classes in Java

Define contracts with interfaces and share code with abstract classes.

intermediate15 min
13

Exceptions and Error Handling in Java

Handle errors with try-catch, throw exceptions, and use finally.

beginner12 min
14

Packages and Imports in Java

Organize code into packages and import classes from other packages.

beginner10 min
15

Threads and Concurrency in Java

Run code in parallel with Thread and Runnable; basics of synchronization.

intermediate15 min
16

Testing in Java with JUnit

Write and run unit tests with JUnit 5 (Jupiter).

intermediate12 min
17

HTTP and HttpClient in Java

Make HTTP GET and POST requests using java.net.http.HttpClient (Java 11+).

intermediate12 min
18

JSON in Java

Parse and generate JSON using simple string handling or libraries like Gson.

intermediate12 min
19

Streams and Lambdas in Java

Use the Stream API and lambda expressions for functional-style operations on collections.

intermediate15 min