Code-Alongs
Overview
Code-alongs are guided programming exercises where you'll work alongside your instructor to apply concepts learned in the modules. These hands-on sessions will help you solidify your understanding and gain practical experience with the key concepts.
Introduction to Threads Code-Along
Build a multi-threaded application that demonstrates thread creation, management, and synchronization.
What You'll Learn
- Creating and starting threads in Java
- Implementing the Runnable interface
- Synchronizing access to shared resources
- Managing thread lifecycle
- Handling thread exceptions
Lambda Expressions Code-Along
Refactor traditional Java code to use lambda expressions and functional interfaces for cleaner, more maintainable code.
What You'll Learn
- Creating and using lambda expressions
- Working with functional interfaces
- Implementing method references
- Using the Stream API for data processing
- Handling exceptions in lambda expressions
How to Participate
To get the most out of these code-alongs:
- Make sure you've reviewed the relevant module content before starting
- Have your development environment set up and ready
- Follow along by typing the code yourself rather than copy-pasting
- Pause the video as needed to catch up or to experiment with the code
- Try extending the examples with your own variations to cement your understanding
Materials and Resources
For these code-along sessions, you'll need:
- Java Development Kit (JDK) 11 or later
- IntelliJ IDEA or your preferred Java IDE
- Maven for dependency management
- Git for version control
The starter code for these code-alongs is available in your cohort repository. Make sure to pull the latest changes before starting.