Course Description
Explore the use of inheritance through interfaces and interface casting. Lists, inference with the var keyword, and lambda expressions are also covered.
Learning Objectives
Java SE 11: Inheritance, Lists, Inference, and Lambda Expressions
- override the toString method of the Object class
- distinguish between interfaces and abstract classes
- implement an interface in a class
- cast to an interface reference to allow access to an object method
- describe the benefits of the ArrayList class
- use an ArrayList to store objects
- concatenate two arrays into a single ArrayList
- convert an array to an ArrayList
- use the Stack collection to push and pop objects
- use the local variable type inference feature to declare local variables using var
- write a simple lambda expression that consumes a predicate
- display the contents of an ArrayList, relying on the toString override