Free · Java 21 (LTS)
Java Programming
Learn Java the way industry uses it: object-oriented design, collections, generics, exceptions, streams, threads and JDBC.
- 39
- Tutorials
- 25
- Projects
- 225
- Practice MCQs
- 10 h
- Reading time
What you will learn
- Understand the JDK, JRE and JVM and run Java programs
- Write classes using encapsulation, inheritance, polymorphism and interfaces
- Handle errors with exceptions
- Use the Collections Framework and generics
- Write concurrent code with threads and synchronisation
- Process data with lambdas and the Streams API, and connect to databases with JDBC
Syllabus
10 modules · 39 topics
What Java is, how the JDK, JRE and JVM fit together, and how to write, compile and run your first program.
Variables and the eight primitive types, operators, type conversion, reading input with Scanner, and working with String.
Making decisions with if and switch (including Java 14 switch expressions), repeating work with loops, and storing sequences of values in arrays.
Defining and calling methods, parameters and return values, Java's pass-by-value rule, overloading, variable-length arguments and recursion.
Designing your own types: classes, objects and references, constructors, the this keyword, static members, and encapsulation with access modifiers.
Reusing and specialising classes with extends and super, overriding and dynamic dispatch, abstract classes, interfaces with default methods, and sealed hierarchies.
Wrapper classes and autoboxing, building text efficiently with StringBuilder, the methods every class inherits from Object (equals, hashCode, toString), enums and records.
Handling errors with try, catch and finally, checked versus unchecked exceptions, try-with-resources, writing your own exception classes, and reading and writing files with java.nio.file.
The Java Collections Framework — List, Set, Map, Queue and Deque — iterators, sorting with Comparable and Comparator, and writing your own generic classes and methods.
Functional-style Java with lambdas, method references and the Streams API; running work in parallel with threads and executors; protecting shared data; and talking to databases with JDBC.
Projects
All 25 projectsStudent Result System
Turn raw marks into a ranked result sheet with totals, percentages, grades, pass/fail status, class statistics and subject toppers.
BeginnerATM Machine Simulator
PIN verification with lock-out, balance enquiry, cash withdrawal in notes, deposits, a daily limit, PIN change and a five-entry mini statement.
IntermediateInventory Management System
Products with validated SKUs, stock in and out, reorder alerts, repricing, category valuation, search and a full audit trail of stock movements.
IntermediateHotel Reservation System
Book rooms for date ranges without double-booking, with weekend pricing, cancellations, availability searches and occupancy reports built on java.time.
AdvancedSudoku Solver
Solve any Sudoku in milliseconds with bit-mask constraint propagation and minimum-remaining-values backtracking, and prove whether the solution is unique.
AdvancedMarkdown to HTML Converter
A line-based Markdown parser with headings and ids, lists, task lists, quotes, fenced code, inline formatting, HTML escaping and unsafe-link filtering, plus a table of contents.