title: Is class a singleton or not . how to make a class as a singleton or a prototype - in Spring
body: <p>By default a class is singleton or not ..</p>
  
  <pre><code>public class You{
  }
  </code></pre>
  
  <hr>
  
  <pre><code>public class My(){
  public static void main(String a[]){
  
  You you=new You();
  
  }
  }
  </code></pre>
  
  <p>is <code>you</code> object is singleton ..
  if it is singleton how to make it prototype ..
  if it is prototype how to make a class as singleton..</p>
  
  <p>Thank you in advance..</p>