Code Pumpkin

Category 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 […]

Java 11 Features

August 27, 2018
Posted by Dipen Adroja

We already know that Java10 is the latest release in the market but Java11 is soon to be released(September-2018). Oracle is accelerating its release cycle as never before which means more feature in faster way getting added to JAVA. I know we still time get hands on Java11 is available in the market still we can already […]

Java 10 Features

August 26, 2018
Posted by Dipen Adroja

Let's take a look and check into what is packed in Java10, which includes local variable type inference and unmodifiable collections APIs. If we check history then Java 10 is the fastest release of a Java till now. Java has always been known for slow releases, but Java 10 just trashed that concept. Java10 is a release with many future changes keeping in […]

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

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

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

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 : 124
follow us in feedly

Like Us On Facebook