Java Interview – How to create Thread-safe Singleton class ?
In this article, we will discuss how to write Java code to create Thread-safe Singleton class in a Multi-threaded environment Before starting to write code Read More
In this article, we will discuss how to write Java code to create Thread-safe Singleton class in a Multi-threaded environment Before starting to write code Read More
In this article, we will cover some of the interview questions with their justification on Serialization concept in Java These are most frequently asked interview Read More
In this article, we will discuss Singleton design pattern with example. Before delving more into topic, we will understand what is Singleton design pattern ? Q) Read More
In this article, we will discuss various ways to create Object in Java i.e.; Various ways to create Object in Java Primarily, there are only 4 Read More
In this article, we will discuss how to serialize list of objects and also de-serializing same Already we have seen how to serialize and de-serialize objects Read More
In this article, we will discuss how to create or construct a singleton class in a multi-threaded environment This is one of the top interview questions Read More
In this article, we will discuss how to stop serialization to happen for a serializable class Q) How to stop Serialization ? One would wonder Read More
In this article, we will discuss singleton design pattern with respect to serialization in detail Let me tell you scenario I have faced during one Read More
In this article, we will discuss importance of SerialVersionUID in Serialization and De-Serialization process Finally we will compare compiler generated SerialVersionUID v/s programmer defined SerialVersionUID and Read More
In this article, we will discuss difference between Serialization and Externalization in detail i.e.; Serializable v/s Externalizable The main difference between these serializing concepts is Read More
In this article, we will discuss externalizable interface with an example to save and restore an object in a customized way Also, we will discuss Read More
In this article, we will discuss Serialization with Inheritance i.e.; IS-A relationship with inheriting class in detail It’s an easy choice, when both super-class & Read More
In this article, we will discuss Serialization with Aggregation i.e.; serializing class contains reference to other classes. It forms a HAS-A relationship There are 2 Read More
In this article, we will discuss Order of Serialization and De-Serialization and also we will cover below programs Why it is important to know order Read More
In this article, we will discuss how can we serialize and de-serialize member variables with transient modifier or keyword In earlier articles, we have seen Read More
In this article, we will discuss what happens to final data member when transient keyword or modifier applied during serialization process This is one of Read More
In this article, we will discuss what happens to static data member when transient keyword or modifier applied during Serialization process This is one of the Read More
In this article, we will discuss transient keyword or modifier with serialization in detail Whenever, we talk about Serialization then definitely there will be loads Read More
In this article, we will discuss the important things we should know about java.io.Serializable interface in detail 1. Serializable interface: Present in java.io package Fully Read More
In this article, we will discuss Java serialization and de-serialization in detail 1. Serialization: The process of writing a state of an Object to a Read More