1/9
These flashcards cover key concepts related to Java inner classes, lambda expressions, and closures.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Static Nested Class
A nested class defined with the static modifier, which can only access static members of the outer class.
Non-Static Inner Class
A nested class that is associated with an instance of its enclosing class and can access both static and non-static members.
Anonymous Inner Class
A class without a name, used for one-time use, typically implementing an interface or extending a class.
Lambda Expression
A concise way to represent an anonymous function; allows you to create instances of functional interfaces.
Captured Variables
Variables from the enclosing scope that are used inside a lambda expression.
Effectively Final
A variable that is not modified after its initialization, which allows it to be used in a lambda expression.
Shadowing
A situation where a local variable or inner class field hides a variable from the outer class.
Invoke-Dynamic
A bytecode optimization used by lambda expressions that avoids creating a new object at runtime.
Functional Interface
An interface with exactly one abstract method, which can be implemented by a lambda expression.
Method Reference
A shorthand notation of a lambda expression to call a method directly, e.g., System.out::println.