Java SE 11: Inheritance, Lists, Inference, & Lambda Expressions
Java
| Beginner
- 12 videos | 1h 56s
- Includes Assessment
- Earns a Badge
Explore the use of inheritance through interfaces and interface casting. During this course, you will explore the functions of key Java elements. Key subject areas include the following: how to override the toString method, how to understand the Multiple Inheritance Dilemma, distinguish between interfaces and abstract classes and implement a Class Interface. Other topics include how to cast to an interface reference to allow object method access; how to study the array list class, and store objects with an array list. You'll also learn how to concatenate two arrays into a single ArrayList, convert an array to an ArrayList, and use the Stack collection, to push and pop objects. As you progress, you will observe how to employ the local variable type inference feature, to declare local variables, using var. Conclude by writing a simple lambda expression that consumes a predicate.
WHAT YOU WILL LEARN
-
Override the tostring method of the object classDistinguish between interfaces and abstract classesImplement an interface in a classCast to an interface reference to allow access to an object methodDescribe the benefits of the arraylist classUse an arraylist to store objects
-
Concatenate two arrays into a single arraylistConvert an array to an arraylistUse the stack collection to push and pop objectsUse the local variable type inference feature to declare local variables using varWrite a simple lambda expression that consumes a predicateDisplay the contents of an arraylist, relying on the tostring override
IN THIS COURSE
-
6m 21sDuring this video, you will learn how to override the toString method of the Object class. FREE ACCESS
-
5m 9sLearn how to distinguish between interfaces and abstract classes. FREE ACCESS
-
3m 2sTo implement an interface in a class, you must first create the interface. FREE ACCESS
-
6m 9sIn this video, you will learn how to cast to an interface reference to allow access to an object's methods. FREE ACCESS
-
4m 24sUpon completion of this video, you will be able to describe the benefits of the ArrayList class. FREE ACCESS
-
5m 36sIn this video, find out how to use an ArrayList to store data. FREE ACCESS
-
4m 1sIn this video, learn how to join two arrays into a single ArrayList. FREE ACCESS
-
4m 32sIn this video, you will convert an array to an ArrayList. FREE ACCESS
-
6m 1sIn this video, you will learn how to use the Stack collection to push and pop objects. FREE ACCESS
-
6m 18sIn this video, learn how to use the local variable type inference feature to declare local variables more efficiently. FREE ACCESS
-
6m 12sIn this video, you will learn how to write a simple lambda expression that uses a predicate. FREE ACCESS
-
3m 13sIn this video, you will learn how to display the contents of an ArrayList, relying on the toString method. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.