Could you tell me can be some case when exception is throwing in constructor and object is not null. I mean some part of object is created and another is not.Like this
No. Look at the client code:
Test myObj = null; try { myObj = new Test(); } catch(MyException e) { System.out.println("" + myObj); }
Here, when exception occurs, the '=' operation is not executed. Your code goes straight to the catch block and myObj stays null.
null