Tag: java

  • Java Record

    Java Record

    In this article, we’ll go through Java Record, which was introduced in Java 14 as a preview feature and became a permanent feature in Java 16 1. What is a Java Record Java Record is a type of class, that has some specific characteristics and restrictions: This means that by using records, you can omit…

  • ArrayList in Java

    ArrayList in Java

    In this article, we’ll talk about ArrayList in Java, one of the most popular implementations of the List interface. 1. What is ArrayList in Java An ArrayList in Java is an implementation of the List interface. Hence, ArrayList is a List, however, if we take a look at the source code, we can see that…

  • Java List

    Java List

    In this article, we will talk about Java List, one of the most popular interfaces in Java. 1. What is a List in Java The Java List lives under java.util package and since it is an interface, it is not a concrete implementation. However, all implementations have some common characteristics: The UML diagram of List…

  • Java Substring

    Java Substring

    In this article, we’ll talk about Java substring method of String class. 1. What is substring Method in Java? The substring method lives under the String class and allows you to retrieve a substring of a specific string. It has two overloaded methods: 2. How to use substring method – Java substring Example In this…

  • Inheritance in Java

    Inheritance in Java

    In this article, we’ll go through Java Inheritance, one of the four Object Oriented Programming concepts, through detailed examples. 1. What is Inheritance in Java Inheritance in Java is just like the inheritance of characteristics that someone might get from his parents or grandparents. Exactly like in real life, children classes can inherit attributes or…

  • Spring Boot Cache

    Spring Boot Cache

    In this article, we’ll talk about how you can enable, configure and evict cache in Spring Boot. 1. Why Use Cache in Spring Boot? We mainly use an in-memory cache in order to enhance the performance of our application. For instance, let’s say you want a computational-heavy method that takes a lot of time to…

  • Java Switch

    Java Switch

    In this article, we will look over the switch keyword in Java and all the enhancements it has received up to JDK 17, including the switch expression. 1. What is a Switch Statement? Switch is a selection statement that allows you to control the flow of the execution of your application. It works as a…

  • Final Keyword in Java

    Final Keyword in Java

    In this article, we will go through what the final keyword does in Java, and when and how you should use it. 1. What Does final Mean in Java The final keyword in Java has a different meaning depending on where you apply it: When it comes to a variable, it means that you cannot…

  • Java LinkedList

    Java LinkedList

    In this article, we are going to go through everything you need to know to use Java LinkedList appropriately and what happens behind the curtains when we use it. We will cover both its practical and theoretical use. 1. What is a LinkedList? In Java, a LinkedList is a doubly linked list, and it is…

  • Java 8 Stream API

    Java 8 Stream API

    In this article, we’ll learn everything regarding Java Stream API that was introduced in Java 8, through detailed examples. 1. What Is a Java Stream? You can think of a stream as a sequence of elements, that allows you to perform sequential and parallel operations. Furthermore, you cannot add any elements once the stream has…