title: Java How to destroy Singleton instance
body: <p>I have a singleton that is created like that</p>
  
  <pre><code>private static class SingletonHolder { 
      public static Singleton INSTANCE = new Singleton();
  }
  
  public static Singleton getInstance() {
      return SingletonHolder.INSTANCE;
  }
  </code></pre>
  
  <p>I'd like to reset the singleton instance at a certain time. (I'm sure at this time it is safe to reset the singleton instance). I tried to remove the final specifier and set the instance to null when I want to reset it but the problem is how to get another instance (It will remain null)</p>
  
  <p>Another question is is it safe to remove the final specifier inside the SingletonHolder.</p>
  
  <p>Thanks</p>