Code Pumpkin

Program to find number of set bits in the Binary number

August 20, 2017
Posted by Abhi Andhariya

In this post, we will discuss about one of the easiest and commonly asked Bit Manipulation Interview Question i.e. Find total number of set bits in the given number?  There are many approach to solve this problem. Here, we will discuss about below two approaches: & and >> Approach (Naive Approach) Brian Kernighan's Approach 1) & and >> Approach […]

Types of Class Loader | Delegation Algorithm | JVM Internals

August 13, 2017
Posted by Riteeka Rathod

In previous articles, we learned about JVM architecture and one of its component Class Loader SubSystem. In this article,  we will discuss about Types of Class Loaders and How Class Loader uses Parent delegation Algorithm to load the class. If you have not gone through previous article on JVM Internals, I would encourage you to read that first. […]

Class Loader SubSystem | JVM Internals

August 5, 2017
Posted by Riteeka Rathod

​In our previous article of JVM internals series, we learned about what is JVM, basic architecture of JVM and briefly understood its components. In this article we will discuss in detail about Class Loader SubSystem component of JVM architecture . Class Loader SubSystem Java’s dynamic class loading functionality is handled by the Class Loader SubSystem. […]

Program to find Unique Array Element

July 30, 2017
Posted by Abhi Andhariya

Programming and coding interview questions are an integral part of any Java, Python or C++ application developer interview. No matter on which language you have expertise, good problem solving skills shows how efficient you are in solving any problem.  In this post, we will discuss one of the very commonly asked programming question. .!! Problem Statement: In […]

java.util.stream – Stream APIs basics | Java8

July 29, 2017
Posted by Dipen Adroja

In this article we will walk through basic overview of java.util.stream package. Package java.util.stream contains classes that support functional type of operations on streams of elements, such as map-reduce transformation, filtering etc. By the end of the article we will be able to answer following questions: 1. What is streams?  2. How it can be created?  […]

Object Pool Design Pattern

July 29, 2017
Posted by Dipen Adroja

Object pool design pattern is one of the Creational Design Pattern. In very simple term, this design pattern means To Reuse the objects which are very costly to create. Object pooling is creating objects of the class at the time of creation and put them into one common pool. Now whenever application needs object of that class […]

JVM Architecture Introduction | JVM Internals

July 26, 2017
Posted by Riteeka Rathod

Being a java developer, it is expected from us to have basic knowledge of JVM architecture, as it enables us to write code more efficiently. Also from the interview perspective JVM architecture, Class loader subsystem, JVM memory management are frequently discussed topics with 3-5 year experienced java developer. If you are able to answer these questions, you will create good impression […]

What is the use of private constructor in java?

In Java, we can use any access modifier (i.e. public, protected or private) with constructor.  So, what are the uses of making constructor private? First thing that strikes your mind is Singleton Design Pattern which is also one of the most asked Core Java Interview Question to the 3-4 yr exp Java developers.  Apart from creating singleton class, private constructor […]

Interface vs Abstract class in Java

July 7, 2017
Posted by Abhi Andhariya

Interface has been evolved a lot in last two releases of java. Refer interface evolution in java for the same. However, there are still many differences between interface and abstract class. It is one of the most asked interview questions for entry level java developer interviews. Even though both are used to achieve abstraction in java, there are significant differences […]

Program to Check Whether a Number is Prime or Not

July 5, 2017
Posted by Abhi Andhariya

Prime Number A prime number can be divided, without a remainder, only by itself and by 1. For example, 13 can be divided only by 13 and by 1, so it is a prime number. In other words, When the only two factors of a number are 1 and the number, then it is a Prime […]

Previous Posts Next posts
Total Posts : 124
follow us in feedly

Like Us On Facebook