
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 list out reasons why do we use always “public static void main()” in Java Why do we use “public static Read More
In this article, we will discuss how to prevent and throw exception while creating 2nd instance/object of a Class 1. Problem statement : Given Class Read More
In this article, we will discuss OOPs Principle with respect to Java Programming Language. OOPs which stands for Object-Oriented Programming defines different principle approaches which Read More
In this article, we will cover some of the interview questions with their justification on this keyword in Java These are most frequently asked interview Read More
In this article, we will cover some of the interview questions with their justification on Super keyword in Java These are most frequently asked interview Read More
In this article, we will discuss how to construct or create an immutable class step-by-step This is one of the favorite interview questions for fresher and 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 previous articles, we already discussed about Java Constructor, Initialization blocks (both static & instance) and also their execution order Read through below article to Read More
In this article, we will discuss super keyword in Java super keyword in java is used to refer immediate parent-class‘ properties/attributes/variables, method and constructor Usage Read More
In this article, we will discuss this keyword in Java this keyword in java is used to refer the current instance of the class 1. Read More
In this article, we will discuss static keyword in Java. static keyword falls under non-access modifier category Advantage :- Use of static helps in efficient Read More
In this article, we will cover some of the interview questions with their justification on final keyword in Java These are most frequently asked interview Read More
In this article, we will discuss final keyword in Java. final keyword falls under non-access modifier category final keyword can be used with Variable Method Read More
In this article, we will learn instanceof operator or keyword in Java and understand how it’s help to avoid ClassCastException during type casting rather to Read More
In this article, we will list the difference between interface and abstract classes in Java Before moving ahead with the differences, read the detailed concepts Read More
In this article, we will cover some of the interview questions with their justification on Java Abstract Classes & methods These are most frequently asked Read More
In this article, we will learn about abstract classes and methods with detailed example 1. Abstract Class : A class with abstract keyword in class Read More
In this article, we will list the difference between Static Initialization blocks and Instance Initialization blocks in Java Before moving ahead with the differences, read Read More