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.
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.