Java SE 11: Inheritance, Lists, Inference, & Lambda Expressions

Java    |    Beginner
  • 12 videos | 1h 56s
  • Includes Assessment
  • Earns a Badge
Rating 4.6 of 124 users Rating 4.6 of 124 users (124)
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 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

IN THIS COURSE

  • 6m 21s
    During this video, you will learn how to override the toString method of the Object class. FREE ACCESS
  • 5m 9s
    Learn how to distinguish between interfaces and abstract classes. FREE ACCESS
  • Locked
    3.  Implementing a Class Interface
    3m 2s
    To implement an interface in a class, you must first create the interface. FREE ACCESS
  • Locked
    4.  Interface Reference Casting
    6m 9s
    In this video, you will learn how to cast to an interface reference to allow access to an object's methods. FREE ACCESS
  • Locked
    5.  Introduction to ArrayList
    4m 24s
    Upon completion of this video, you will be able to describe the benefits of the ArrayList class. FREE ACCESS
  • Locked
    6.  Using an ArrayList to Store Objects
    5m 36s
    In this video, find out how to use an ArrayList to store data. FREE ACCESS
  • Locked
    7.  Array Concatenation
    4m 1s
    In this video, learn how to join two arrays into a single ArrayList. FREE ACCESS
  • Locked
    8.  Converting an Array to an ArrayList
    4m 32s
    In this video, you will convert an array to an ArrayList. FREE ACCESS
  • Locked
    9.  Using the Stack
    6m 1s
    In this video, you will learn how to use the Stack collection to push and pop objects. FREE ACCESS
  • Locked
    10.  Type Inference Using var
    6m 18s
    In this video, learn how to use the local variable type inference feature to declare local variables more efficiently. FREE ACCESS
  • Locked
    11.  Lambda Expressions and Predicates
    6m 12s
    In this video, you will learn how to write a simple lambda expression that uses a predicate. FREE ACCESS
  • Locked
    12.  Exercise: Displaying the Contents of a List
    3m 13s
    In 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.

YOU MIGHT ALSO LIKE

Rating 4.7 of 84 users Rating 4.7 of 84 users (84)
Rating 4.6 of 80 users Rating 4.6 of 80 users (80)

PEOPLE WHO VIEWED THIS ALSO VIEWED THESE

Rating 4.5 of 77 users Rating 4.5 of 77 users (77)
Rating 4.6 of 343 users Rating 4.6 of 343 users (343)
Rating 4.1 of 53 users Rating 4.1 of 53 users (53)