
The StackOverflowError in Java
1. Overview StackOverflowError can be annoying for Java developers, as it’s one of the most common runtime errors we can encounter. In this article, we’ll see […]
1. Overview StackOverflowError can be annoying for Java developers, as it’s one of the most common runtime errors we can encounter. In this article, we’ll see […]
1. Overview Enum in Java is a datatype that helps us assign a predefined set of constants to a variable. In this quick article, we’ll see […]
1. Introduction Both ClassNotFoundException and NoClassDefFoundError occur when the JVM can not find a requested class on the classpath. Although they look familiar, there are some core differences between […]
1. Overview The java.io.File class has three methods — getPath(), getAbsolutePath() and getCanonicalPath() — to obtain the filesystem path. In this article, we’ll have a quick look at the differences between them […]
1. Overview UUID (Universally Unique Identifier), also known as GUID (Globally Unique Identifier) represents a 128-bit long value that is unique for all practical purposes. The standard representation […]
1. Overview In this short tutorial, we’ll learn how to round a number to n decimal places in Java. 2. Decimal Numbers in Java Java provides two […]
1. Timer – the Basics Timer and TimerTask are java util classes used to schedule tasks in a background thread. In a few words – TimerTask is the task to […]
1. Generate an Unbounded Long Let’s start with generating a Long: 2. Generate a Long Within a Range 2.1. Random Long With Plain Java Next […]
1. Overview In this tutorial, we’re going to take a first look at the Lambda support in Java 8 – specifically at how to leverage it […]
1. Introduction The binary number system uses 0s and 1s to represent numbers. Computers use binary numbers to store and perform operations on any data. […]
1. Introduction Comparing objects is an essential feature of object-oriented programming languages. In this tutorial, we’re going look at some of the features of the […]
1. Introduction In Java’s if-else statements we can take a certain action when an expression is true, and an alternative when it is false. In this tutorial, we’ll learn […]
1. Overview In this short tutorial, we’ll investigate the definition of “Plain Old Java Object” or POJO for short. We’ll look at how a POJO compares to […]
1. Overview In the most basic sense, a program is a list of instructions. Control structures are programming blocks that can change the path we take […]
1. Introduction In this quick guide, we’ll discuss the term “concrete class” in Java. First, we’ll define the term. Then, we’ll see how it’s different from […]
1. Overview In this tutorial, we’ll focus on a core aspect of the Java language – the finalize method provided by the root Object class. Simply put, this is […]
1. Overview The Java type system is made up of two kinds of types: primitives and references. We covered primitive conversions in this article, and we’ll […]
1. Overview In this tutorial, we’ll take a quick look at the java.lang.System class and its features and core functionality. 2. IO System is a part of java.lang, and […]
1. Overview As the name suggests, wrapper classes are objects encapsulating primitive Java types. Each Java primitive has a corresponding wrapper: boolean, byte, short, char, int, […]
1. Overview In the absence of necessary synchronizations, the compiler, runtime, or processors may apply all sorts of optimizations. Even though these optimizations are beneficial […]