Let's learn Java

How to serialize and deserialize a binary tree in Java

Learn how to serialize and deserialize a binary tree in Java. Code examples included

Read More →

April 06, 2022

April 06, 2022

How to create a singleton class in Java

Learn how you can create a singleton class in Java with code examples

Read More →

April 05, 2022

April 05, 2022

Java abstract class - with code examples

Learn how an abstract class works and how to create one in Java

Read More →

April 04, 2022

April 04, 2022

Create and use an anonymous object in Java

Learn how you can create and use anonymous objects in Java

Read More →

April 01, 2022

April 01, 2022

How to print an array in Java - single and multi-dimensional array

A short guide on how to print a single and multi-dimensional array in Java

Read More →

March 31, 2022

March 31, 2022

Java Interface vs Abstract Class - know when to use what

Learn the differences between Java Interfaces and Abstract Classes in this tutorial

Read More →

March 25, 2022

March 25, 2022

extends vs implements in Java

Learn the differences between extends and implements and when to use each

Read More →

March 24, 2022

March 24, 2022

How to initialize a generic array in Java. Code examples included

Learn how to create and initialize a generic array in Java

Read More →

March 23, 2022

March 23, 2022

How to parse a JSON String into an object with Java

Learn how to parse a String into a JSON object using Java programming language

Read More →

March 22, 2022

March 22, 2022

Java - Convert String type value into enum type tutorial

Learn how to convert String type value into enum type in Java

Read More →

March 21, 2022

March 21, 2022

Java - How to check if a variable or object is not null

Learn how to avoid the Java NullPointerException error by checking if a variable is not null

Read More →

March 18, 2022

March 18, 2022

Java args parameter simply explained

Learn what is args parameter in Java main() method

Read More →

March 17, 2022

March 17, 2022

Can you extend two classes in Java?

A guide on how to extend two or more classes in Java

Read More →

March 16, 2022

March 16, 2022

How to ignore exceptions thrown in your Java code

A handy guide on how to ignore exceptions thrown when running a Java program

Read More →

March 15, 2022

March 15, 2022

Creating a custom Exception class in Java

Learn how to create and use a custom Exception class in Java

Read More →

March 14, 2022

March 14, 2022

Creating an abstract class constructor in Java

Learn if you can create an abstract class constructor in Java and when you should create one

Read More →

March 11, 2022

March 11, 2022

How to declare a constant variable in Java

Learn how to declare a constant variable in Java

Read More →

March 10, 2022

March 10, 2022

Understanding the \\s+ regex pattern in Java

A short guide on how the regex pattern \\s+ works in Java

Read More →

March 09, 2022

March 09, 2022

How to get the length of a Linked List in Java

Learn how to get the length of a Linked List instance in Java

Read More →

March 08, 2022

March 08, 2022

How to print the values of a LinkedList in Java

Learn how to print the values of a LinkedList instance in Java

Read More →

March 07, 2022

March 07, 2022