Learn Java from Basic to Advanced
From your first program to concurrency, the JVM and real projects.
- modules
- 15
- topics
- 100
- exercises
- 408
- of practice
- 68 h 5 min
About this course
Learn Java programming from the fundamentals to advanced concepts with practical examples, exercises, coding challenges, and projects.
What you'll learn
15 modules and 100 topics. Every topic has short lessons, a quiz, hands-on exercises checked in your browser, and interview questions.
1Introduction to Java
What Java is, how the JDK, JRE and JVM fit together, and your first program.
- What Is Java and Why Use It?
- How Java Works: JDK, JRE and JVM
- Installing Java and Setting Up Your Tools
- Your First Java Program
- How Java Code Is Compiled and Executed
- Module 1 assessment
2Variables and Data Types
Variables, primitive and reference types, casting, final, wrapper classes and var.
- Variables: Declaration, Initialization and Naming
- Primitive Types: Numbers, Characters and Booleans
- Reference Types, null and Wrapper Classes
- Type Conversion, Casting and Promotion
- Constants with final, and var
- Module 2 assessment
3Operators and Conditions
Operators, precedence, if/else, switch statements and modern switch expressions.
- Arithmetic, Assignment and Unary Operators
- Comparison, Logical and Ternary Operators
- if, if-else, else-if and Nested Conditions
- The Classic switch Statement
- Modern switch Expressions
- Module 3 assessment
4Loops and Arrays
for, while, do-while, enhanced for, break/continue, arrays and ArrayList.
- Loops: for, while and do-while
- break, continue and Nested Loops
- Arrays and the Enhanced for Loop
- Multidimensional Arrays
- Common Array Operations: sort, print, copy, search
- Arrays vs ArrayList
- Module 4 assessment
5Strings and Methods
Strings, immutability, StringBuilder, methods, overloading, recursion and pass-by-value.
- Strings: Creation, Immutability and the String Pool
- String Methods and Comparing Strings
- StringBuilder and StringBuffer
- Methods: Parameters, Return Values and Overloading
- Static vs Instance Methods, and Pass-by-Value
- Recursion
- Module 5 assessment
6Object-Oriented Programming
Classes, objects, constructors, inheritance, polymorphism, encapsulation, abstraction and interfaces.
- What is OOP? Classes and Objects
- Constructors and the this Keyword
- Encapsulation and Access Modifiers
- Inheritance, extends and super
- Method Overriding and Polymorphism
- Abstraction: Abstract Classes and Interfaces
- The static and final Keywords
- Composition vs Inheritance
- Module 6 assessment
7Packages and Exception Handling
Packages and imports, checked vs unchecked exceptions, try/catch/finally, custom exceptions.
- Packages and Imports
- Exceptions, try and catch
- finally, throw and throws
- Custom Exceptions
- try-with-resources
- Module 7 assessment
8Collections Framework
List, Set, Map, Queue, Deque, iterators, Comparable/Comparator and choosing the right collection.
- What Is the Collections Framework?
- List, ArrayList and LinkedList
- Set, HashSet, LinkedHashSet and TreeSet
- Map, HashMap, LinkedHashMap and TreeMap
- Queue, PriorityQueue, Stack and Deque
- Iterator, Comparable, Comparator and Sorting
- Choosing the Right Collection
- Module 8 assessment
9Generics and Modern Java
Generics, lambdas, functional interfaces, streams, Optional, records and pattern matching.
- Generics: Classes, Methods, Bounds and Wildcards
- Lambdas, Functional Interfaces and Method References
- The Stream API: filter, map, flatMap, reduce, collect
- Optional: Saying "Maybe There Is No Value"
- Switch Expressions, Records and Pattern Matching
- Newer Java Features: Text Blocks, Sealed Classes, Virtual Threads, Sequenced Collections
- Module 9 assessment
10File Handling and I/O
Reading and writing files, streams, buffered I/O, NIO Path/Files and serialization.
- File Basics and the File Class
- Reading and Writing Text Files
- InputStream and OutputStream (Byte Streams)
- NIO Basics: Path and Files
- Serialization Basics
- Module 10 assessment
11Multithreading and Concurrency
Threads, synchronization, race conditions, executors, futures, CompletableFuture and locks.
- Threads: Creating, Starting and Joining
- Race Conditions, synchronized, Atomic and volatile
- Deadlocks, ReentrantLock and tryLock
- ExecutorService, Callable, Future and Virtual Threads
- CompletableFuture: Async Pipelines
- Concurrent Collections and Best Practices
- Module 11 assessment
12JVM and Advanced Java
JVM memory, class loading, garbage collection, reflection, annotations, modules and debugging.
- JVM Architecture and Class Loading
- JVM Memory: Heap, Stack and Metaspace
- Garbage Collection and Memory Leaks
- Reflection and Annotations
- Java Modules (JPMS)
- Performance, Debugging and Common JVM Problems
- Module 12 assessment
13Testing and Development Tools
JUnit 5, Mockito, Maven, Gradle, logging, IDE debugging and Git.
- Unit Testing with JUnit 5
- Test Lifecycle and Parameterized Tests
- Mocking with Mockito
- Build Tools: Maven and Gradle
- Logging, IDE Debugging and Git
- Module 13 assessment
14Design Principles and Patterns
SOLID, DRY, KISS and the Factory, Singleton, Builder, Strategy, Observer and Repository patterns.
- SOLID Principles
- DRY, KISS, Separation of Concerns and Composition
- Creational Patterns: Factory, Singleton, Builder
- Behavioral Patterns: Strategy and Observer
- Repository Pattern and Dependency Inversion in Practice
- Module 14 assessment
15Java Projects
Guided console projects that combine everything: from a student system to an expense tracker.
- Project 1: Student Management System
- Project 2: Employee Management System
- Project 3: Library Management System
- Project 4: Banking Application
- Project 5: Inventory Management System
- Project 6: Console Expense Tracker