title: Java: Using same instance of a class in various other classes
body: <p>it might be stupid question, but I dont know the answer to it and I dont know where to search the answer, so it would be nice if someone could help me.</p>
  
  <p>I've a class (lets name it A) with different members and methods. I use the methods of this class in another class (lets name it B).</p>
  
  <p>For every B-Object created I want to use the SAME instance of A. Is that possible?
  Actually I have a constructor in B where I call A a = new A(); Of course I always get different instances of this class.</p>
  
  <p>How can I now change this? I know it could be possible to solve it with spring framework (inject always the same object into the instances of B), but I cant use it. How else could this problem be solved?</p>
  
  <p>Thank you very much for your help! :-)</p>