Java Timer

2021 VietMX 0

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 […]

Binary Numbers in Java

2021 VietMX 0

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. […]

Comparing Objects in Java

2021 VietMX 0

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 […]

Concrete Class in Java

2021 VietMX 0

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 […]

Wrapper Classes in Java

2021 VietMX 0

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, […]

Using Java Assertions

2021 VietMX 0

1. Introduction The Java assert keyword allows developers to quickly verify certain assumptions or state of a program. In this article, we’ll take a look at how to […]

Class Loaders in Java

2021 VietMX 0

1. Introduction to Class Loaders Class loaders are responsible for loading Java classes during runtime dynamically to the JVM (Java Virtual Machine). Also, they are part of […]

Java – Try with Resources

2021 VietMX 0

1. Overview Support for try-with-resources — introduced in Java 7 — allows us to declare resources to be used in a try block with the assurance that the resources […]

Test a REST API with Java

2021 VietMX 0

1. Overview This tutorial focuses on the basic principles and mechanics of testing a REST API with live Integration Tests (with a JSON payload). The main goal […]