Java Articles, Tutorials & News

Java Control Flow: Part 1

In this series I will explain what control flow is, how it is represented for program analysis, and the various nuances for practical implementations that target Java bytecode. Basics Control flow is a term used to describe the order in which the statemen…

Read more »

Things We Love About Java

JetBrains loves all programming languages, and developers of all types! This May, Java turns 25 years old! So we want to pay it special attention, and celebrate 25 things we love about Java and the JVM.

Read more »

Java’s Sealed Classes

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 extend it. Sealed classes, like enums, capture alternative…

Read more »

Fastest LRU Cache in Java

Data is laid out in memory as closely as possible on an integer array. Map and Doubly Linked List are not two different data structures anymore. A custom map implementation allows built-in doubly linked list functionality on key-value and left-right data …

Read more »

Java Sealed Classes

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 extend it. Sealed classes, like enums, capture alternative…

Read more »

How to use a Java HashSet by example

What is a HashSet A HashSet is an unordered collection containing unique elements. It has the standard collection operations Add, Remove, Contains, but since it uses a hash-based implementation, these operations are O(1) Learn with a Programming Question …

Read more »

Java – One Year Later

It’s been a little over a year since I started developing in Java full-time again. A retrospective is overdue! Workplace takeaways Communication. This may not seem like a Java-related skill, but I cannot overstate how many times stopping to ask questions,…

Read more »