title: Java : Singleton class instances in a Web based Application
body: <p>I have this Singleton class inside a Web Application .</p>
  
  <pre><code>public class MyDAO 
   {
  
  
      private static MyDAO instance;
  
      private MyDAO() {
      }
  
      public static MyDAO getInstance() {
          if (instance == null) {
              instance = new MyDAO();
          }
          return instance;
      }
  </code></pre>
  
  <p><strong>I will access it this way</strong> </p>
  
  <pre><code>public void get_Data()
  {
  
          MyDAO dao = MyDAO.getInstance();
  }
  </code></pre>
  
  <p>How many Objects of MyDAO class will be created  if there are 3 Users accessing the Application ??</p>
  
  <p>Will there be one instance of  MyDAO per User ?? </p>