title: Throwing exceptions from constructor - is it necessary subclass has to throw as well?
body: <p>I am reading a topic of throwing exceptions from constructors. After a bit of studying same topic over stackflow. I have come to conclusion that we can throw exceptions from constructors. The issue occurs when we try to subclass the parent whose constructor throw an exception. For example, see the following code snippet below.</p>
  
  <pre><code>class  ParentConstructorException{
    public ParentConstructorException() throws IOException {
  
    }
  }
  
  public class TestConstructorException extends ParentConstructorException {
    public TestConstructorException() throws Exception{
  
    }
    //Causes compile time error if i don't throw exception
    public TestConstructorException(int x){
  
    }
  } 
  </code></pre>
  
  <p>I have provided a no-arg constructor in the child class that throws a broader exception.
  When i overload the constructor, it says i didn't handle the checked exception. So it means
  we cannot initiate the subclass without throwing the checked exception which is same or 
  broader? Can someone explain please.
  Ben </p>