Classes in Java: Working with Static Nested, Inner, & Local Classes

Java SE 15    |    Intermediate
  • 13 Videos | 1h 48m 32s
  • Includes Assessment
  • Earns a Badge
Static nested and inner classes in Java are used when classes have a logical relationship with or are intimately associated with the outer class within which they are defined. Local classes are classes defined within a scope and can only be accessed and used within that scope. They're the perfect tools to use when you want to limit the visibility of your classes. Through this course, learn to create and use static nested classes defined within an outer class. Explore how a closer relationship with an outer class can be expressed using inner classes and why access modifiers do not apply to local classes. And define and use local classes created with a code block. When you're finished with this course, you'll be able to pick the right kind of class for your use case and correctly implement nested classes, inner classes, and local classes.

WHAT YOU WILL LEARN

  • discover the key concepts covered in this course
    illustrate how nested static classes work
    instantiate and use static nested classes
    illustrate various aspects of nested static classes
    recognize the limitations of static nested classes
    define and use inner classes
    access variables from inner classes
  • use inner classes to create iterators for data structures
    define and use local classes
    access fields within local classes
    work with access modifiers and scopes in local classes
    define local classes in initialization blocks
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 13s
    UP NEXT
  • Playable
    2. 
    Working with Static Nested Classes in Java
    13m 4s
  • Locked
    3. 
    Instantiating Static Nested Classes in Java
    12m 4s
  • Locked
    4. 
    Using Multiple Nested Classes within an Outer Class
    8m 44s
  • Locked
    5. 
    Navigating the Drawbacks of Static Nested Classes
    8m 42s
  • Locked
    6. 
    Using and Characterizing Inner Classes in Java
    12m 25s
  • Locked
    7. 
    Accessing Variables from Inner Classes in Java
    12m 25s
  • Locked
    8. 
    Working with Iterators Implemented as an Inner Class
    9m 52s
  • Locked
    9. 
    Using and Characterizing Local Classes in Java
    10m 13s
  • Locked
    10. 
    Accessing Final and Local Fields from Outer Classes
    6m 9s
  • Locked
    11. 
    Using Access Modifiers and Scopes for Local Classes
    5m 28s
  • Locked
    12. 
    Using Local Classes Defined in Initialization Blocks
    5m 24s
  • Locked
    13. 
    Course Summary
    1m 50s

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.