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 courseillustrate how nested static classes workinstantiate and use static nested classesillustrate various aspects of nested static classesrecognize the limitations of static nested classesdefine and use inner classesaccess variables from inner classes
-
use inner classes to create iterators for data structuresdefine and use local classesaccess fields within local classeswork with access modifiers and scopes in local classesdefine local classes in initialization blockssummarize the key concepts covered in this course
IN THIS COURSE
-
1.Course Overview2m 13sUP NEXT
-
2.Working with Static Nested Classes in Java13m 4s
-
3.Instantiating Static Nested Classes in Java12m 4s
-
4.Using Multiple Nested Classes within an Outer Class8m 44s
-
5.Navigating the Drawbacks of Static Nested Classes8m 42s
-
6.Using and Characterizing Inner Classes in Java12m 25s
-
7.Accessing Variables from Inner Classes in Java12m 25s
-
8.Working with Iterators Implemented as an Inner Class9m 52s
-
9.Using and Characterizing Local Classes in Java10m 13s
-
10.Accessing Final and Local Fields from Outer Classes6m 9s
-
11.Using Access Modifiers and Scopes for Local Classes5m 28s
-
12.Using Local Classes Defined in Initialization Blocks5m 24s
-
13.Course Summary1m 50s
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

Course
Organizing Code into Classes