Code-Alongs

Code-Along Overview

Join interactive coding sessions to practice and reinforce your learning with hands-on exercises related to Streams and JSON Serialization.

Code-Along 1: Streams

In this hands-on exercise, you'll work with Java Streams to process and transform collections of data. You'll implement several stream operations to filter, map, and collect data from various sources, reinforcing the concepts learned in Module 2.

Key Learning Objectives:

  • Apply filter operations to find elements that match specific criteria
  • Transform data using map operations to extract or modify properties
  • Collect stream results into appropriate data structures
  • Chain multiple stream operations to perform complex data processing
  • Use terminal operations like forEach, reduce, and collect to produce final results

Code-Along 2: JSON Serialization

This exercise focuses on JSON serialization and deserialization using the Jackson library in Java. You'll work with a real-world application scenario where you need to convert Java objects to JSON format for API responses and parse incoming JSON data into Java objects.

Key Learning Objectives:

  • Configure Jackson ObjectMapper for custom serialization needs
  • Implement proper annotations to control JSON field names and visibility
  • Handle complex object hierarchies with nested serialization
  • Deserialize JSON data with type references for collections
  • Create custom serializers and deserializers for special data types

Resources