is throwing exception from a constructor not a good practice ?
Actualy though when an object is created memory will b allocated but the process of allocation of memory will be complete only if conytructor is successfully invoked so if constructor throws an exception memory will not be allocated for that object.