5910 Breckenridge Pkwy Suite B, Tampa, FL. 33610
(800) 272-0707

SkillSoft Explore Course

IT Professional Curricula     Software Development Solution Area     Java 2 Programming     Nested Classes and Lambda Expressions
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.

Objectives

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

  • 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