Classes in Java: Creating & Using Anonymous Classes

Java SE 15    |    Intermediate
  • 7 Videos | 59m 45s
  • Includes Assessment
  • Earns a Badge
Likes 1 Likes 1
Anonymous classes in Java allow you to define code that use-and-throw. These are classes where you define and instantiate a class simultaneously and which are anonymous, i.e., do not have a name. These are perfect in scenarios where you want a class that implements a certain interface but will not be reused beyond where it is defined and accessed. Through this course, learn to create and use anonymous classes, recognizing how they are nested, inner, and unnamed classes that either implement an interface or derive from a base class. As you advance, explore some common use cases for anonymous classes. When you're finished with this course, you'll be able to create and use anonymous classes in Java correctly, with the correct syntax, and for the proper use case.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    define and use anonymous classes
    recognize how anonymous instances are objects
    illustrate the finer points of anonymous classes
  • implement the built-in interfaces, Comparator and Runnable, with anonymous classes
    perform filter operations with local and anonymous classes
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 3s
    UP NEXT
  • Playable
    2. 
    Using Anonymous Classes in Java
    10m 32s
  • Locked
    3. 
    Defining Why Anonymous Class Instances Are Objects
    9m 10s
  • Locked
    4. 
    Exploring Nuances of Anonymous Classes in Java
    10m 20s
  • Locked
    5. 
    Implementing Interfaces with Anonymous Classes in Java
    13m 2s
  • Locked
    6. 
    Using Local and Anonymous Classes to Filter Data in Java
    13m 3s
  • Locked
    7. 
    Course Summary
    1m 36s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE