Suppose i have 3 java classes A , B and C
I need to create an object of class C that is used in both A and B but the problem in creating the object separately is that the constructor of class c is called 2 times. But i want the constructor to be called just once.
So i want to use the object created in class A into class b.