title: What is the difference between Singleton Pattern and Synchronized
body: <p>I have a problem with "thread safe" method calls in one of my Java EE Beans concerning using the Lucene <code>IndexWriter</code>.</p>
  
  <p>I am unsure if I should solve my problem by implementing a <strong>Singleton Pattern</strong> or if it is sufficient to add the keyword <code>synchronized</code> to my bean methods.</p>
  
  <p>Can anybody explain what exactly is the difference?</p>