Learn Intermediate Java
Go beyond the basics of Java: console and file I/O, serialization, generics and the collections framework, nested classes, multithreading, regular expressions, and unit testing with JUnit.
- Intermediate level
- 8 modules
- 36 lessons
- 106 tasks and questions
Syllabus
01Input and OutputRead and write text in Java: formatted console output, Scanner, command-line arguments, writing and reading files, and handling the checked exceptions that come with I/O.5 lessons
02SerializationSave objects and load them back with Java serialization: the Serializable interface, object streams, serialVersionUID, transient and static fields, custom serialization hooks, and the security risks to keep in mind.4 lessons
03GenericsWrite classes, interfaces and methods that work with any type while keeping compile-time type safety: type parameters, generic methods, bounded types, wildcards and type erasure.4 lessons
04The Collections FrameworkChoose and use Java's collection types: the core interfaces, lists and sorting with comparators, sets, queues and deques, maps, plus the Collections utilities and a first look at streams.6 lessons
05Nested ClassesDefine classes inside other classes: static nested classes, inner classes tied to an instance, local classes inside methods, and anonymous classes, and see when a lambda is the simpler choice.4 lessons
06ThreadingRun work concurrently with threads: create and start them with Thread and Runnable, wait with join, understand race conditions, protect shared data with synchronized and atomic variables, and use thread pools.5 lessons
07Regular ExpressionsDescribe text patterns with regular expressions and use them from Java: Pattern and Matcher, character classes and quantifiers, groups for extracting data, and regex-powered String methods.4 lessons
08JUnit TestingLearn why automated tests matter and how JUnit structures them: test methods and assertions, testing exceptions, setup with lifecycle annotations, parameterized tests, and running tests with build tools.4 lessons