Nuacht

The Java compiler must create synthetic methods on nested classes when their attributes specified with the private modifier are accessed by the enclosing class.
There is a reason why Java method modifiers exist. If you call public methods internally and don't understand why, your developers could face major class issues.
Method references in Java are part of the broader set of features introduced and enhanced in Java 8 and beyond. They are a concise way to refer to methods of classes or objects.