Skip to content

Tag: java

How to Build the Java 9 JDK

Learn how to build JDK 9 from source code, just ahead of its imminent release. A step-by-step guide to get the new Java version running on your machine.

Jun 3, 2017

Java Type Inference: The Diamond Operator

Java's diamond operator lets you cut down on verbosity when writing your code. Learn how it works with generics and type inference, and where it falls short.

May 6, 2017

Gson (JSON) in Java, with Examples

GSON is a Java API developed by Google to convert Java objects to JSON (serialization) and JSON to Java objects (deserialization). Learn it with examples.

May 2, 2017

Singleton Pattern in Java, with Examples

Learn the Singleton design pattern in Java: a software engineering pattern that limits the creation of objects of a class to one, with code examples.

Dec 21, 2015

Annotations in Java

Java annotations are simple notes that can change how your program works. Learn to use and create them, with Reflection and Spring dependency injection.

Aug 15, 2015

Reflection in Java

Reflection in Java lets you pick a class you wrote earlier and inspect or modify it while the program runs. It's easy to learn with practical examples.

Jul 12, 2015

Exceptions in Java, with Examples

Learn what exceptions are in Java, how the Throwable hierarchy works, and how to handle errors with try - catch - finally, with simple, practical examples.

Oct 12, 2014