title: Java: Exception in constructors: Problematic or not?
body: <p>I am recently thinking about if throwing constructor from Java is good or not. Currently this is what I gathered:</p>
  <ol>
  <li><p><a href="https://stackoverflow.com/questions/1371369/about-constructors-in-java">Can constructors throw exceptions in Java?</a></p>
  <p>Here, Mr. StackOverflow (aka Jon Skeet) does not seem to hold anything against it, but he did hint about having subclass throwing exceptions. What will happen (anything bad?) when subclass throws exceptions?</p>
  </li>
  <li><p><a href="http://futuretask.blogspot.com/2006/05/java-tip-10-constructor-exceptions-are.html" rel="noreferrer">http://futuretask.blogspot.com/2006/05/java-tip-10-constructor-exceptions-are.html</a></p>
  <p>This blog post &quot;Constructor Exceptions are Evil&quot; tells me a way to show that constructor exceptions could be dangerous. However, the example seem to be really esoteric. Is there any real danger here?</p>
  </li>
  <li><p>I am thinking that if static factory methods (Effective Java 2nd ed., Item 1) are used instead of public constructors, we could safely remove the exceptions from constructors to the static factory method. Is this a valid way to avoid constructor exceptions and is this useful or used in anywhere?</p>
  </li>
  </ol>
  <p>Any inputs are helpful &amp; appreciated. Thanks!</p>