News

Abstract classes and interfaces in Java serve fundamentally different purposes. Learn the differences between these Java language elements and how to use them in your programs.
The release of Java SE 15 in Sept 2020 will introduce "sealed classes" (JEP 360) as a preview feature. A sealed class is a class or interface which restricts which other classes or interfaces may ...
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 ...
Type erasure in Java generics programming can cause a variety of problems in your code. Fortunately, there are ways to work around them. Generics programming in Java enhances type safety and code ...
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 ...