Classes in Java: Working with Static Nested, Inner, & Local Classes
Akanksha Agrawal
Skillsoft issued completion badges are earned based on viewing the percentage required or receiving a passing score when assessment is required. 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.
Issued on
December 30, 2024
Expires on
Does not expire