Java Learning Modules is a structured programming education repository designed to teach Java from foundational syntax to modern JVM internals and layered application design. Across 18 sequential modules and 300 numbered submodules (01_HelloWorld.java through 300_SpringBootRestAPIProject.java), learners progress through core language mechanics, object-oriented programming, collections, functional streams, file I/O, concurrency, JDBC database programming, testing, and enterprise architectural patterns. Every module directory pairs a dedicated README.md study guide with standalone single-file .java programs and captured console execution screenshots in output/, allowing each topic to be compiled and executed independently with OpenJDK 17 without external databases or build tool setup.
This curriculum is structured to build progressive Java engineering competence from basic console programs to multi-layered backend architectures. The learning outcomes below represent the intended skills supported by the repository modules and practical projects rather than formal assessment or certification:
- Write, compile, and execute Java programs while understanding source structure,
mainentry points, primitive types, operators, control flow, and modular methods. - Design maintainable object-oriented systems using encapsulation, inheritance, polymorphism, abstraction, interfaces, composition, and
java.lang.Objectcontracts. - Apply runtime safety and dynamic data structures using exception handling, try-with-resources, Java Collections Framework (
List,Set,Queue,Map), Generics, Lambda expressions, and the Stream API. - Implement filesystem persistence, binary serialization, Java NIO.2 operations,
BigDecimalfinancial precision,java.timedate/time handling,Optional, Reflection, Records, and Sealed Classes. - Build concurrent and data-driven components using threads, synchronization,
ReentrantLock, atomic variables,ExecutorService,CompletableFuture, JDBCPreparedStatementflows, transactions, and DAO patterns. - Practice software quality concepts and layered architecture through standalone simulations of JUnit-style testing, Maven/Gradle lifecycles, JVM memory concepts, SHA-256/AES cryptography, Spring-style dependency injection, and five integrated console capstone projects.
The repository follows a linear, module-based progression calibrated from introductory fundamentals to advanced Java platform engineering. Each module folder combines Indonesian-language practical study guides (README.md) with self-contained Java source files and verified execution captures (output/*.png), enabling self-paced, hands-on study.
| Attribute | Description |
|---|---|
| Learning Level | Beginner to Advanced (18 progressive modules) |
| Learning Approach | Module-Based, Practice-Driven & Self-Contained Simulations |
| Learning Format | Module Study Guides (README.md), Standalone .java Files, Output Captures (.png) |
| Programming Focus | Java (Core Language, OOP, Collections, Streams, Concurrency, JDBC, JVM & Layered Design) |
| Learning Pace | Self-Paced Modular Progression |
The curriculum is organized into 18 sequential modules spanning four progressive learning stages: Foundations (01–05), Intermediate Core & OOP (06–12), Advanced Platform & Systems (13–15), and Enterprise Patterns & Capstone Projects (16–18).
- Java Fundamentals & Control Flow (
Modules 01–05): Program anatomy, primitive data types, CLI I/O, operators, conditional branching, and loops. - Modularization, OOP & Functional Collections (
Modules 06–12): Methods, recursion, arrays, regex, OOP fundamentals and inheritance, exceptions, JCF, Generics, Lambdas, and Streams. - Filesystem I/O, Modern Standard Library & Concurrency (
Modules 13–15): Streams, serialization, NIO.2,java.time,BigDecimal, Reflection, Records, Sealed Classes, multithreading, andCompletableFuture. - Database Access, JVM Quality & Integrated Projects (
Modules 16–18): JDBC CRUD/DAO flows, JUnit-style testing, Maven/Gradle/JVM concepts, Spring-style layered simulations, and five capstone applications.
| Order | Module | Main Topics | Materials |
|---|---|---|---|
| 01 | Module 01: Pengenalan Java dan Struktur Program | Hello World, anatomy, comments, print/printf, identifiers, keywords, JVM compilation |
1 README, 10 .java files, 10 outputs |
| 02 | Module 02: Variabel dan Tipe Data | Variables, 8 primitives (byte–boolean), String, final constants, widening & narrowing casting |
1 README, 14 .java files, 14 outputs |
| 03 | Module 03: Input, Output, dan Operator | Scanner, BufferedReader, CLI args, arithmetic/logical/bitwise/ternary operators, Math |
1 README, 14 .java files, 14 outputs |
| 04 | Module 04: Percabangan dan Pengambilan Keputusan | if/else-if, nested if, switch, modern switch expressions, applied decision mini-apps |
1 README, 12 .java files, 12 outputs |
| 05 | Module 05: Perulangan | for, while, do-while, nested loops, break/continue, labels, enhanced for, number patterns |
1 README, 14 .java files, 14 outputs |
| 06 | Module 06: Method dan Modularisasi Program | Parameters, return values, overloading, varargs, scope, static vs instance, recursion, packages | 1 README, 14 .java files, 14 outputs |
| 07 | Module 07: Array dan Manipulasi String | 1D/2D arrays, search, sort, matrices, StringBuilder, StringBuffer, regex, StringTokenizer |
1 README, 22 .java files, 22 outputs |
| 08 | Module 08: OOP Dasar | Classes, objects, constructors, this, access modifiers, encapsulation, static, final, Object |
1 README, 20 .java files, 20 outputs |
| 09 | Module 09: OOP Lanjutan | Inheritance, super, overriding, polymorphism, abstract classes, interfaces, composition, inner classes |
1 README, 20 .java files, 20 outputs |
| 10 | Module 10: Exception Handling | try-catch-finally, throw/throws, checked vs unchecked, custom exceptions, try-with-resources |
1 README, 16 .java files, 16 outputs |
| 11 | Module 11: Java Collections Framework | List, Queue, Deque, Set, Map, Iterator, Comparable/Comparator, immutable collections |
1 README, 22 .java files, 22 outputs |
| 12 | Module 12: Generics dan Functional Programming | Generic classes/methods, wildcards, type erasure, Lambdas, functional interfaces, Stream API | 1 README, 22 .java files, 22 outputs |
| 13 | Module 13: File Handling dan Input/Output | File, buffered/byte streams, serialization, transient, NIO.2 Files, CSV, Properties, ZIP, WatchService |
1 README, 18 .java files, 18 outputs |
| 14 | Module 14: Standard Library dan Fitur Bahasa Modern | SecureRandom, BigInteger, BigDecimal, java.time, Optional, Enum, Reflection, Records, Sealed |
1 README, 18 .java files, 18 outputs |
| 15 | Module 15: Multithreading dan Concurrency | Thread, Runnable, Callable/Future, synchronized, volatile, ReentrantLock, atomics, CompletableFuture |
1 README, 16 .java files, 16 outputs |
| 16 | Module 16: Database Programming dengan JDBC | DriverManager, Statement, PreparedStatement, ResultSet, CRUD, transactions, batching, DAO, pooling |
1 README, 14 .java files, 14 outputs |
| 17 | Module 17: Testing, Build Tools, JVM, dan Keamanan | JUnit/Mockito concepts, Maven/Gradle, JAR, JavaDoc, logging, JVM GC, Java 14–17 syntax, crypto, static analysis | 1 README, 22 .java files, 22 outputs |
| 18 | Module 18: Framework dan Proyek Praktik Java | Spring DI, Spring Boot, REST, JPA, validation, security, MockMvc, plus 5 integrated capstone projects | 1 README, 12 .java files, 12 outputs |
Each module folder serves as a self-contained unit with a detailed submodule guide (README.md), numbered .java source programs, and corresponding execution screenshots (output/). Representative entry, core, and milestone files are linked below for quick navigation.
- Learning Guide: Module 01 README
- Source Code (
01–10): 01_HelloWorld.java · 06_SystemOutPrintf.java · 10_CompileAndRun.java - Execution Outputs: Module 01 Output Captures
- Learning Guide: Module 02 README
- Source Code (
11–24): 11_Variables.java · 21_StringDataType.java · 24_TypeConversion.java - Execution Outputs: Module 02 Output Captures
- Learning Guide: Module 03 README
- Source Code (
25–38): 25_ScannerInput.java · 33_BitwiseOperators.java · 38_MathClass.java - Execution Outputs: Module 03 Output Captures
- Learning Guide: Module 04 README
- Source Code (
39–50): 39_IfStatement.java · 44_SwitchExpression.java · 50_DiscountCalculator.java - Execution Outputs: Module 04 Output Captures
- Learning Guide: Module 05 README
- Source Code (
51–64): 51_ForLoop.java · 59_EnhancedForLoop.java · 64_NumberPatterns.java - Execution Outputs: Module 05 Output Captures
- Learning Guide: Module 06 README
- Source Code (
65–78): 65_MethodBasic.java · 69_MethodOverloading.java · 78_PackagesBasic.java - Execution Outputs: Module 06 Output Captures
- Learning Guide: Module 07 README
- Source Code (
79–100): 79_ArrayBasic.java · 95_StringBuilder.java · 100_TextProcessing.java - Execution Outputs: Module 07 Output Captures
- Learning Guide: Module 08 README
- Source Code (
101–120): 101_ClassBasic.java · 109_Encapsulation.java · 120_HashCodeMethod.java - Execution Outputs: Module 08 Output Captures
- Learning Guide: Module 09 README
- Source Code (
121–140): 121_Inheritance.java · 127_Polymorphism.java · 140_AnonymousClasses.java - Execution Outputs: Module 09 Output Captures
- Learning Guide: Module 10 README
- Source Code (
141–156): 141_ExceptionBasic.java · 152_TryWithResources.java · 156_ExceptionHandlingPatterns.java - Execution Outputs: Module 10 Output Captures
- Learning Guide: Module 11 README
- Source Code (
157–178): 157_ArrayListBasic.java · 167_HashMap.java · 178_ImmutableCollections.java - Execution Outputs: Module 11 Output Captures
- Learning Guide: Module 12 README
- Source Code (
179–200): 179_GenericsBasic.java · 186_LambdaExpressions.java · 200_ParallelStreams.java - Execution Outputs: Module 12 Output Captures
- Learning Guide: Module 13 README
- Source Code (
201–218): 201_FileClass.java · 213_FilesClass.java · 218_WatchService.java - Execution Outputs: Module 13 Output Captures
- Learning Guide: Module 14 README
- Source Code (
219–236): 223_BigDecimal.java · 234_ReflectionAPI.java · 236_SealedClasses.java - Execution Outputs: Module 14 Output Captures
- Learning Guide: Module 15 README
- Source Code (
237–252): 237_ThreadBasic.java · 250_CompletableFuture.java · 252_VirtualThreads.java - Execution Outputs: Module 15 Output Captures
- Learning Guide: Module 16 README
- Source Code (
253–266): 253_JDBCConnection.java · 262_JDBCTransactions.java · 266_ConnectionPooling.java - Execution Outputs: Module 16 Output Captures
- Learning Guide: Module 17 README
- Source Code (
267–288): 267_JUnitBasic.java · 279_JVMMemoryManagement.java · 288_StaticCodeAnalysis.java - Execution Outputs: Module 17 Output Captures
- Learning Guide: Module 18 README
- Source Code (
289–300): 289_SpringDependencyInjection.java · 295_SpringBootTesting.java · 300_SpringBootRestAPIProject.java - Execution Outputs: Module 18 Output Captures
Module 18 consolidates concepts from Modules 01 through 17 into five completed, self-contained console application implementations (296–300) stored alongside their captured execution outputs.
| Project / Challenge | Learning Focus | Source File |
|---|---|---|
| Console Calculator with History | Arithmetic operations, zero-division guard, calculation history log | 296_CalculatorProject.java |
| Student Management System | Student records (NIM, major, GPA), CRUD operations, GPA statistics |
297_StudentManagementProject.java |
| Inventory Management System | Warehouse stock tracking, inbound/outbound mutations, low-stock alerts, asset valuation | 298_InventoryManagementProject.java |
| Library Management System | Book catalog circulation, borrow/return state guard, overdue fine calculation | 299_LibraryManagementProject.java |
| Layered REST API Architecture | Controller, Service, Repository, Request/Response DTOs, and 404 error handling | 300_SpringBootRestAPIProject.java |
All 300 learning programs are authored in Java using standard JDK APIs and pure-Java educational simulations (for JDBC drivers, reflective JUnit-style test runners, build lifecycle models, and Spring-style IoC/REST layers) so learners can run every lesson without external dependencies.
| Category | Technology | Purpose |
|---|---|---|
| Language Taught | Java (JDK 17 LTS) | Core language syntax, OOP, Generics, Lambdas, Records, Sealed Classes, Pattern Matching |
| Runtime & Compiler | OpenJDK (java, javac) |
Single-file source execution (java File.java) and bytecode compilation |
| Standard APIs | Java Collections, Stream API, NIO.2, java.time |
Dynamic data structures, functional pipelines, filesystem I/O, date/time, BigDecimal |
| Concurrency & System | java.util.concurrent, java.lang.reflect, javax.crypto |
Thread pools, locks, atomics, CompletableFuture, annotations, SHA-256/AES concepts |
| Database API | java.sql (JDBC API) + educational driver proxy |
Connection lifecycle, PreparedStatement, transactions, batching, DAO simulation |
| Documentation & Verification | Markdown (README.md) & PNG captures (output/*.png) |
Module study guides and verified console output screenshots per submodule |
Running the lessons requires only a local Java Development Kit (JDK 17 or newer is recommended to support single-file source execution and modern language features such as Switch Expressions, Text Blocks, Records, and Sealed Classes). No external database server, Maven/Gradle installation, or third-party JAR dependencies are needed.
- Required: Java Development Kit (JDK 17+), terminal (
PowerShell,bash, orzsh), andgitto clone the repository. - Optional: Any Java IDE or editor (such as VS Code with Java extensions or IntelliJ IDEA) for browsing modules and inspecting output captures.
git clone https://github.com/weztcy/Java-Learning-Modules.git
cd "Java Learning Modules"
java -versionEvery .java file in Modules 01 through 18 is standalone and contains its own main method, so it can be run directly using Java's single-file source-code launcher or compiled manually with javac.
- Navigate to the target module directory:
cd module-01-pengenalan-java-dan-struktur-program - Run a submodule directly on OpenJDK 17+:
java 01_HelloWorld.java
- Or compile to bytecode first and execute the generated class (replace
HelloWorldwith the class name declared inside the file):javac 01_HelloWorld.java java HelloWorld
- For advanced module demonstrations (such as JDBC, testing runners, or layered REST simulations), run the standalone file in the same way:
cd ../module-18-framework-dan-proyek-praktik-java java 300_SpringBootRestAPIProject.java
Contributions to expand explanations, refine code comments, or improve documentation clarity are welcome through standard GitHub pull requests:
- Fork the repository.
- Create a branch for the change.
- Add or improve learning materials, source code, exercises, or documentation.
- Verify code examples and links where practical.
- Commit and push the branch.
- Open a pull request with a clear explanation.
This project is licensed under the MIT License. See the LICENSE file for details.
Yohanes Dimas Pratama
- GitHub: github.com/weztcy
- Portfolio: yohanesdimas.com
- LinkedIn: linkedin.com/in/yohanes-dimas
