Skip to main content

  | मौसम…

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

411 REFERENCE · Wikibooks

Java Programming/Keywords/else

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

is a Java keyword. It is an optional part of a branching statement. It starts the 'false' statement block. 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 [ Statement ] } For example: if ( expression ) { System.out.println("'True' statement block"); } else { System.out.println("'False' statement block"); } See also: Java Programming/Keywords/if deep