Create Simple Spring Boot Application from scratch

In this post, let’s experiment to create a simple spring boot application. Prerequisites Java Development Kit – Java 0.0 above Eclipse – jee-2021-03 or any other IDE 1. Create your project from https://start.spring.io/ On click of Generate, your project will be downloaded as a zip file. 2. Open eclipse workspace and import your project using […]

Understanding Java Memory Management – 2

Let’s continue here with garbage collector, Garbage Collection Garbage collection is the process of freeing space in the heap or the nursery for allocation of new objects. Let’s look at the models of Garbage Collection. The Mark and Sweep Model Generational Garbage Collection Dynamic and Static Garbage Collection Modes Compaction The Mark and Sweep Model […]

Understanding Java Memory Management – 1

One interviewer asked me a question, “Do you know about Java Memory Management “. I started replying like this, “Heap and Stack are the parts of it. Heap is the place where we store the objects and stack is the place for storing the reference for those objects.” He started firing subsequent questions and I […]

How To Rebase Git Branch

Here is the scenario where we need rebase. main is the base branch and 2 sub branches add and subtract were created from main. Developer A is working on add and developer B is working on subtract.  Developer A pushed his changes and merged the code to main. But B is still working on his […]