News

It’s not easy to keep up with Java’s frequent feature releases. If you missed sealed classes, text blocks, records, the new string methods, or the Optional class, let’s fix that.
In my previous post, I presented the new java.lang.ProcessHandle interface and its long getPid() method for returning a PID. Listing 2 obtains the current process’s PID by executing ...
Java Supplier interface tutorial. As you can see, the code for the class that implements Java’s Supplier interface is fairly simple. The only requirements are the class declaration and the ...