News

When developing Java applications, it is easy to get used to invoking logging on the provided logger via its log level-specific methods. For example, Log4j‘s Logger provides methods such as ...
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.
Hiding Java method deprecation problems There are plenty of deprecated methods in Java, and there’s nothing stopping you from calling them. Sure, a yellow yield sign might appear in the line-number ...
A public method should never be called by another public method within the same class hierarchy. It should only be called by other classes via the classes' public interface. Class calls might not be ...