Learn the essentials of functional programming with objects and APIs in the most recent long-term support release, Java 17.
Overview
Syllabus
Introduction
- Java objects and APIs
- What you should know
- Inheritance between classes
- Constructors in inheritance
- Overriding and overloading inherited methods
- Chain of inheritance
- Limiting access in inheritance
- Sealed classes
- Challenge: Cake! Cake! Cake!
- Solution: Cake! Cake! Cake!
- Polymorphism with objects
- Object typecasting
- instanceof operator
- Abstract classes and methods
- Inheriting from abstract classes
- Creating objects with abstract types
- Creating an interface
- Implementing interfaces
- Instantiating objects with interface types
- Default and static methods
- Collections framework
- Sets
- Lists
- Queues
- Maps
- Iterators
- Enhanced for loops
- forEach() and lambdas
- Challenge: Gradebook
- Solution: Gradebook
- Functional interfaces
- Streams
- Common stream operations
- Try and catch blocks
- Stack trace and exception message
- Checked vs. unchecked exceptions
- Handling multiple exceptions
- Finally block
- Try with resources
- Throwing exceptions
- Rethrowing exceptions
- Next steps
Taught by
Angie Jones