title: Can a singleton in spring have static methods?
body: <p><code>Component</code> and <code>Service</code> type beans and most of the other bean types are by default singleton.</p>
  
  <p>In one of my code Pull requests, I declared a method as static in a <code>Component</code> as the method wasn't modifying any class level variables.</p>
  
  <p>My code reviewer pointed out that since the class is anyways a Singleton and is going to have a single reference, he said it was unnecessary to make the method <code>static</code>, but rather make it a <code>instance</code> method.</p>
  
  <p>Which way is the correct way of writing code as most of the classes in my application are Singletons?</p>