Learn Java with
runnable examples.
Clear explanations, complete source code and sample output — from your first program to OOP, collections, threads and data structures.
223+
Programs
6
Tracks
21
Topics
JDK
Platform
Popular Tutorials
Java Basics
Start with your first Java program, data types, variables and operators — each topic includes runnable code and sample output.
Conditional
Control flow with if/else, switch, loops, jump statements and Java access specifiers.
Array and String
Work with arrays and strings — creation, traversal, manipulation and common utilities.
OOPS
Object-oriented Java — inheritance, polymorphism, interfaces, exceptions, collections, threads and I/O.
Miscellaneous
Patterns, conversions, calculations and assorted useful Java programs.
Data Structure
Stacks, queues, linked lists, searching and sorting algorithms in Java.
Network
More learning sites
Explore tutorials on the main hub and dedicated language subdomains.