This article was originally posted on my blog. You should also read my Java 11 Tutorial (including new language and API features from Java 9, 10 and 11).
The goal of this task is to explore the use of Java Generics by developing a Pair class that represents a 2-tuple. Tuple is a finite ordered sequence of elements. A 2-tuple contains two elements, a ...
In part 1 of this series, Gary uploaded an awesome post and video explaining the basics of Java programming. Java is the official programming language of Android; so if you want to build fully-fledged ...
Method references are a shorthand way to write lambda expressions that call a single method. Rather than implementing a method in a functional interface, a method reference simply points to an ...
Each JVM thread (a path of execution) is associated with a stack that’s created when the thread is created. This data structure is divided into frames, which are data structures associated with method ...
The most significant addition to the Java language since Sun Microsystems rewrote the collections API for Java 5 is the introduction of Java records. Java records address two significant pain points ...