Tuesday, June 19, 2012

When we do not put semicolon at the end of the java statement?

When any statement is followed by any curley('{') braces then that statement must not end with semicolon(;).
For example:- class name or any function name must not end with semicolon. Similarly any looping statement, switch , if or else statement must not end with semicolon.


No comments:

Post a Comment