In this blog post we’ll talk about what is a Java thread and when to use it. Also we’ll go through some examples of how to create and run a thread. What is Java Thread? Java thread is a lightweight process. When we start up […]
Java Abstract Class
In this article we’ll talk about what is Java abstract class and what are its’ main characteristics. In addition to that you’ll read about when to use an abstract class in java. As a final step, we’ll take a look at some example code. What […]
Interface in Java: Explained (Including Java 8 and 9 updates)
In this blog post we’ll cover what is an interface in Java. We have also included the updates that came along with Java 8 and 9. What is interface in Java? Interface in Java is a reference type, similarly to classes. To refresh your mind, […]
Java LinkedHashSet and Its’ Difference from HashSet
In this blog post we’ll cover what is Java LinkedHashSet, when and how to use it. In addition to that we’ll also talk about how it is different from the HashSet. What is Java LinkedHashSet? Java LinkedHashSet is an implementation of a hash table and a […]
Java TreeSet: Explained With Examples
In this blog post you’ll read about what a Java TreeSet is and when to use it. Also, we’ll take a look at some examples that TreeSet in Java has to offer. It has quite a few different features from the HashSet. What is Java TreeSet? […]
Java LinkedHashMap and Its’ Difference From HashMap
In this blog post we’ll cover what is Java LinkedHashMap and when to use it. Also, we’ll talk about what is the difference between the LinkedHashMap and HashMap in Java. It would be better if you already know what a HashMap is before continuing to […]
Java TreeMap And Its’ Little-Known Features
What is Java TreeMap? Java TreeMap is a collection that implements from the NavigableMap interface. It has been available since JDK 1.2. In its’ essence TreeMap is an implementation of Red-Black tree. Red-Black tree is a self-balancing binary tree. TreeMap in Java stores key-value pairs. In […]
Java HashMap: 5 Questions and Answers You Should Know Of
1. What is Java HashMap? Java HashMap is a collection that implements from the Map interface. It has been around since JDK 1.2. HashMap is implemented on top of HashTable and therefore they both have a lot of similarities. HashMap in Java stores key-value pairs […]
Java HashSet: What It Is, When and How To Use It?
In this blog post we will first cover what is a Java HashSet, when to use a HashSet and show you how to use a HashSet in Java by providing several examples. You’ll also find answers to the following questions: Is HashSet ordered? Is HashSet synchronized? What […]
LinkedList in Java With Examples How to Use It
In this blog post we will first cover what is a LinkedList in Java, when to use a Java LinkedList and show you how to use a LinkedList by providing several examples. What is LinkedList in Java? Java LinkedList is a collection that implements from […]