Concurrency in Transaction


Concurrency means allowing more than one transaction to operate simultaneously on a same database.

Concurrency has many advantages

1. Reduces waiting time

2. Reduces the Response time.

3. Increases resource utilization

4. Increases Efficiency.




Clone a linked list with next and random pointer


We have a double linked list where each node consists of three pointers data, random and next. Now our task is to clone this linked list


Let’s first dive deep into the 1st solution of this problem

This method stores the next and random pointer (of original list) in an array first, then modifies the original Linked List (to create copy), creates a copy. And finally restores the original list.

Backtracking Algorithms


Backtracking is a form of recursion. But it involves choosing only option out of any possibilities. We begin by choosing an option and backtrack from it, if we reach a state where we conclude that this specific option does not give the required solution. We repeat these steps by going across each available option until we get the desired solution.

This technique use brute force approach which says that for a given problem you should try all possible solutions and pick up desired solutions


Java Streams



The addition of the Stream was one of the major features added to Java 8. This in-depth tutorial is an introduction to the many functionalities supported by streams, with a focus on simple, practical examples.


First of all, Java 8 Streams should not be confused with Java I/O streams (ex: FileInputStream etc); these have very little to do with each other.

Simply put, streams are wrappers around a data source, allowing us to operate with that data source and making bulk processing convenient and fast.

Concurrency In JAVA

Fundamentals - I 

Motivations for Concurrency

There are a number of motivations for the usage of Concurrency in today's time, and in many cases now more than ever we are living in a time where concurrency has become one of the most important factor in the scaling factors of most of the applications that we develop.

No Need To Check Nulls?


This is the common exception which every developer deals with, each day. Today we are going to mitigate your chances to meet this exception and believe me if you use the below strategy you are going to miss this exception.

Today we’ll be discussing Null Pointer Design Patten.

Strategy Design Pattern

Hi, Today we’ll be going a step forward in the design of software architecture. In this article, I’ll be going through the strategy pattern. 

Why do we need this? If we use this pattern in our coding style, our code will be more flexible and later if you want to alter or extend the code that varies, you can do without affecting that does not.


Very important principle #1 in design -> 

take what varies and encapsulate it … and it will not affect the rest of our code 
 code that changes ← — — -> code that stays the same

Very important principle #2 in design ->

SOLID Principles: Why and How ?

solid image

In this article, we will be learning about SOLID principles. This is the biggest need of the time as we all write the code every day and it becomes a tedious task to make changes into them.

Why you need them:

Subscribe to Code Standards