Syllabus

  1. 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
    1. 01Console Output and Scanner
    2. 02Command-Line Arguments
    3. 03Writing Files
    4. 04Reading Files
    5. 05Handling I/O Exceptions
  2. 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
    1. 01Serializing Objects
    2. 02serialVersionUID
    3. 03Transient and Static Fields
    4. 04Custom Serialization and Security
  3. 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
    1. 01Generic Classes
    2. 02Generic Methods
    3. 03Bounded Type Parameters
    4. 04Wildcards and Type Erasure
  4. 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
    1. 01The Collections Framework
    2. 02Lists and Sorting
    3. 03Sets
    4. 04Queues and Deques
    5. 05Maps
    6. 06Collections Utilities and Streams
  5. 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
    1. 01Static Nested Classes
    2. 02Inner Classes
    3. 03Local and Anonymous Classes
    4. 04Choosing a Nested Class
  6. 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
    1. 01Threads and Runnables
    2. 02Join, Sleep and Interrupts
    3. 03Race Conditions and synchronized
    4. 04Atomic Variables and Concurrent Collections
    5. 05Thread Pools and Executors
  7. 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
    1. 01Patterns and Matchers
    2. 02Character Classes and Quantifiers
    3. 03Groups, Extraction and Replacement
    4. 04Regex in String Methods
  8. 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
    1. 01Why Unit Tests?
    2. 02Tests and Assertions with JUnit Jupiter
    3. 03Setup, Lifecycle and Parameterized Tests
    4. 04Running Tests in Your Projects