1 Reply Latest reply on Aug 19, 2012 2:51 AM by EJP

    Code is not compiling  is this java defect ?

      below java code is not compiling showing error message.
      Object obj=new Object(); //here I have tried to test with other class as well but result is same code is showing error message.

      while if add curly bracket to if condition like below code working fine.

      Object obj=new Object();

      can anybody please explain the above difference.

      Edited by: user12152025 on Aug 18, 2012 10:20 AM