How can i use same object in different classes in Java
<p>Suppose i have 3 java classes A , B and C</p>

<p>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.</p>

<p>So i want to use the object created in class A into class b.</p>
