Skip to main content

  | मौसम…

411 समाचार
Public archive edition · Attributed source reporting with original dates · AI drafts are excluded

411 REFERENCE · Wikibooks

Java Programming/Keywords/if

Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.

is a Java keyword. It starts a branching statement. The general syntax of a , using , is branching-statement ::= condition-clause single-statement | block-statement [ single-statement | block-statement ] condition-clause ::= ( Boolean Expression ) single-statement ::= Statement block-statement ::= { Statement [ Statements ] } For example: if ( boolean Expression ) { System.out.println("'True' statement block"); } else { System.out.println("'False' statement block"); } See also: Java Programming/Keywords/else deep