Code Pumpkin

Tag Archives: Core Java

Java Variables Interview Questions

September 22, 2018
Posted by Abhi Andhariya

Hello Developers, In this article, you will learn basics of java variables. If you are preparing for your first ever java interview, then you must go through all the questions mentioned in this article. It will definitely help you clear all your doubts related to java variables. After reading this article, you will be able to […]

How is Java different than other programming languages?

September 8, 2018
Posted by Indu Malik

Hello Developers, In this article, I have explained many things regarding Java and I have also explained some important features of Java which played important role for making Java different and better than other programming languages. Now, without further ado, let's dive right into it. A bit about Java Java is a programming language, it […]

Wissen Infotech Interview Questions – Set 2

July 19, 2018
Posted by Rahul Chudasama

I have appeared for Senior Java Developer Position at Wissen Infotech and It was my 3rd round. Interviewer mainly focused on Multithreading. He started with basic multithreading questions and moved to internals of Concurrent Utils. Here I am listing down some of the interesting questions he asked. What is the difference between notify() and notifyAll()? (Answer) How can […]

ServiceNow Interview Questions Set 1

May 13, 2018
Posted by Pumpkin

First Round (Programming round at HackerEarth) I have participated in ServiceNow Developer Hiring Challenge conducted on HackerEarth. There were two programming questions in this challenge and I was able to solve both of them. Both of these problems are now present in Hacker Earth practice section.  Second Round (Technical Telephonic Round) After few days, I got […]

Immutable class with mutable member fields in Java

April 30, 2018
Posted by Abhi Andhariya

Immutable class is a class which once created, it's content can not be changed. Immutable classes are good choice for HashMap key as their state cannot be changed once they are created. Objects of immuable classes are also thread safe as threads can not change the value of its fields once it is created. Creating a basic immutable class is very […]

Breaking Singleton using reflection and Enum Singleton

January 14, 2018
Posted by Abhi Andhariya

This is our fifth article in the series of Singleton Design Pattern. The purpose of the singleton class is to control object creation, limiting the number of objects to only one. In our previous articles, we have discussed how we can create Singleton Design Pattern in Single-threaded and multithreaded environment. We have also discussed how we can […]

Preventing Cloning in Singleton Design Pattern

January 13, 2018
Posted by Abhi Andhariya

This is our third article on Singleton Design Pattern. The purpose of the singleton class is to control object creation, limiting the number of objects to only one.  In our previous two articles, we have discussed how we can create Singleton Design Pattern in Single-threaded and multithreaded environment. In this article, we will discuss how we can […]

Serialization and Singleton Design Pattern

January 13, 2018
Posted by Abhi Andhariya

This is our forth article in the series of Singleton Design Pattern Articles. The purpose of the singleton class is to control object creation, limiting the number of objects to only one.  In our previous three articles, we have discussed how we can create Singleton Design Pattern in Single-threaded and multithreaded environment. We have also discussed how […]

Singleton Design Pattern Using Double Checked Locking

This is our second article in the series of Singleton Design Pattern.  In this article, we will see different thread safe approaches for lazy Initialization Singleton Design Pattern like Using Synchronized getInstance() method, Double checked locking approach and Bill Pugh Implementation using Inner class. For navigating to the other articles on Singleton Design Pattern, please refer table of contents on the right […]

Java Method Overriding Interview Questions

December 17, 2017
Posted by Abhi Andhariya

In our previous article, we have discussed tricky programming questions based on method overloading. However, Method overriding programming questions are more interesting and requires depth understanding of the concept than that of method overloading. Before moving to programming questions, lets understand the basic concepts of method overriding. Method Overriding Using method overriding, child class can […]

Previous Posts
Total Posts : 122
follow us in feedly
Contribute Your Articles

Subscribe Us

Like Us On Facebook