News

Instance main methods and unnamed classes, coming in Java 21, will forever change how developers learn Java and bootstrap applications. Why? They provide a simple, clean and concise syntax to launch ...
In my previous post, I looked at some of the problems associated with long parameters lists for methods and constructors. In that post, I discussed replacing primitives and built-in types with ...
Method and variable handles vs. Java reflection To truly understand MethodHandles and VarHandles —what they do and why they are useful—it’s helpful to know a few things about reflection in Java.
While it seems so basic that it wouldn't require a mention, there's a basic and often violated software design principle pertaining to Java method modifiers that is in need of explanation. A public ...