• 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 […]

  • 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-66276fe0033a6590083485-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 […]

  • 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 […]

  • 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 […]