News

Since Java 21, wrapper classes have played an increasingly sophisticated role in Java’s type system. Here’s everything you ...
java.lang: A collection of language-related classes, such as Object and String, organized in the java package’s lang subpackage; java.lang.ref: A collection of reference-related language classes ...
Atomic classes are a part of the java.util.concurrent.atomic package, which was introduced in Java 5 to support low-level concurrency and synchronization.
Strictly speaking, it isn't possible to list the classes in a package. This is because a package is really nothing more than a namespace (eg com.epicapplications.foo.bar), and any jar-file in the ...
Optimize your own algorithms with standard Java classes. Remove duplicates with Java’s Stream API. The fastest and most efficient way to remove items from a List in Java is to use the distinct method ...
Sealed classes make Java an even more powerful and expressive language and set the stage for even more sophisticated techniques such as pattern matching, which we'll explore in a subsequent article. A ...