• 28 August

    A In-Depth guide to Java 8 Stream API

    In this post, we will see an in-depth overview of Java 8 streams with a lot of examples and exercises. Introduction You may think that Stream must be similar to InputStream or OutputStream, but that’s not the case. A Stream represents a sequence of elements supporting sequential and parallel aggregate operations. Stream does not store […]

  • Difference between Runnable and Callable in java
    16 December

    Difference between Runnable and Callable in java

    Runnable and Callable interface both are used in the multithreading environment.Callable is available in java.util.concurrent.Callable package and Runnable in java.lang.Thread. Difference between Runnable and Callable interface in java Runnable was introduced in java 1.0 version While Callable is an extended version of Runnable and introduced in java 1.5 to address the limitation of Runnable. Runnable […]

  • 16 July

    Garbage Collection in java

    In this post, we will see about Garbage Collection in java. I will try to explain with the help of diagrams and examples rather than theory. JVM Memory is divided into three parts Young generation Old generation Metaspace (Perm Gen) Young Generation As the name suggests, young generation is the area where newly created objects […]

  • 06 May

    Spring Boot Hello world StandAlone application

    In this post, we are going to create Spring Boot Hello world StandAlone application. We have already created Spring boot web hello world example. It is very easy to configure Spring standalone project using Spring boot. Github Source code: Download Project Structure:   Step 1:  Create a simple java  project using maven in eclipse named "SpringBootHelloWorldStandaloneExample". Step […]

  • 04 May

    How HashMap works in java

    Most common interview questions are <code>How HashMap works in java</code>, “How get and put method of HashMap work internally”. Here I am trying to explain internal functionality with an easy example. [crayon-614e042bb8872710416796-i/]  is one of the most used Collections in java.Rather than going through theory, we will start with example first, so that you will […]