title: Can't define a private static final variable because it throws an exception
body: <p>I have a class like:</p>
  
  <pre><code>public class SomeClassImpl implements SomeClass {
     private static final SomeLib someLib = new SomeLib();
  }
  </code></pre>
  
  <p>I can't do this because SomeLib throws a UnknownHostException.</p>
  
  <p>I know I could move the instantiation to the constructor, but is there a way for me to do it the way I have it above somehow?  That way I can keep the var marked as final.</p>
  
  <p>I tried to look for how to throw exceptions at the class level but can't find anything on it.</p>