Java

Articles on the Java programming language.
Apr
05
How to Use Java's Optional Class

How to Use Java's Optional Class

Java's Optional class is a partial replacement for null and allows for more of a compile-time null check.
5 min read
Apr
03
Difference Between the JVM, JRE, and JDK in Java

Difference Between the JVM, JRE, and JDK in Java

The JVM, JRE, and JDK are the tools needed for developing and/or running a Java application.
1 min read
Nov
24
Compiling and Running Your First Java Program

Compiling and Running Your First Java Program

It is a tradition to start with a simple program that outputs the text "Hello World."
1 min read
Oct
27
How to Know What Collection to Use

How to Know What Collection to Use

What collection is the right one for the job?
2 min read
Aug
25
Checked vs Unchecked Exceptions in Java

Checked vs Unchecked Exceptions in Java

Checked exceptions are checked by the compiler whereas unchecked exceptions are not.
2 min read
Jul
28
Simplifying Throws Clauses in Java Unit Tests

Simplifying Throws Clauses in Java Unit Tests

Listing checked exceptions in the throws clause of a unit test method is pointless.
1 min read