hello everybody,
i think all of u are not getting the point to which steven is pointing.
Read it carefully.
what steve want's to say is that if u put the brace's around the if condition then the compiler in the above case will not give an error otherwise it will,becasue what happen's when u don't put the brace's, the statement immediately after the if() is a part of if body but the second statement after the immedate statement is not part of the if() condition, therefore when the compiler compile's it check's the if condition if it is true it initializes STR ="56789";then it executes the next statement but if the condition does not meet then the STR ="56789"; does not get execute and that line is skipped and it moves to next statement ( System.out.println(STR)
the moment it come's to this statement compiler sees that STR is not initialized therefore it give's an error.I hope this is where steve is actually pointing
Thank's.
bye.