The most significant addition to the Java language since Sun Microsystems rewrote the collections API for Java 5 is the introduction of Java records. Java records address two significant pain points ...
How can we debug method calls that are not part of our own source code, say a call to JButton.setEnabled()? Java provides us with anonymous inner classes, which come in quite handy for this problem.