Java Enum Example

This tutorial will show how to use Enum in Java. It will show how to get enum instances code by name.

How Singleton Design Pattern Works in Java

Introduction Here in this post I will discuss how singleton pattern works in Java. Singleton pattern is a design solution, where an application wants to have one and only one instance of a class, in all possible scenarios without any exceptional condition. The singleton instance is actually created per JVM but not across multiple JMVs. The singleton class has a…