UBS Interview Question

Create Singleton class in Java