I have written a lot of java interview questions and this is index posts for all java interview questions. I will keep adding more interview questions to this post. Table of ContentsCore JavaCore java interview …

This is the index post for Core Java tutorial for beginners as well as for experienced programmer. I have written Core Java tutorial from basic to advanced topics.It will definitely help you learn Java in …

In this post, we will see how to print all paths from top left to bottom right of MxN matrix. Problem We need to print all paths from top left to bottom right of MxN matrix. …

In this post, we will see how to print numbers from 1 to N without using loop. Problem Print number from 1 to N without using any loop. N=10 Output: 1 2 3 4 5 …

In this post, we will see how to find all subsets of set or power set in java. Problem Given a set of distinct integers, arr, return all possible subsets (the power set). For example: Input: nums …

In this post, we will see how to find all permutations of the array in java. Table of ContentsProblem 1SolutionProblem 2Solution Problem 1 Given array of distinct integers, print all permutations of the array. For …

In this post, we will see about how to count all paths from top left to bottom right of MxN matrix. Table of Contents ProblemSolutionRecursionDynamic programming Problem We need to count all paths from top …

In this tutorial, we will see about Memoization example in java. Let me start with the question. Would you like to do same task again and again when you know that it is going to …

In this post, we will see how to find Intersection of two linked lists. Problem Given two singly linked lists, find if two linked lists intersect. If they intersect, find intersection point. Solution Here is simple …

In this tutorial, we will see about JSON server. Let’s say you are front-end developer and need to integrate backend calls with REST APIs but you came to know from backend team that REST APIs …

In this post, we will learn java set to array conversion. There are many ways to convert set to an array. Table of Contents1. Using Java 8’s Stream2. Using toArray()3. Using System.arraycopy()4. Using simple iteration …

In this post, we will see how to convert Java Collection to List. There are many ways to do it, we will see two ways here. Using ArrayList constructor Above ArrayList‘s constructor creates a …