Java   View all facts   Glossary   Help
syntactic unit > statement > control flow statement > decision making statement > if statement
Next decision making statementif-else statement    Updecision making statement    Previous decision making statementtry-catch-finally statement   

if statement
subjectfact 
if statementcan omit braces if there is only one embedded statementadded by: JK, source: On To Java, 2001-10-19 11:36:52.0
has part boolean expressionadded by: JK, source: On To Java, 2001-10-19 11:36:52.0
has syntax
if  (boolean expression) {
embedded statement(s)
}
source: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:36:52.0
is a subtopic of Loops and Decision Making2001-10-19 11:36:52.0
is a kind of decision making statementsource: Object Oriented Software Engineering by Lethbridge and Laganière, 2001-10-19 11:36:52.0
decision making statementhas purpose to make a decision on which branch of code to follow in a program2001-10-19 11:36:35.0
statementis terminated by a semicolon    2001-10-19 11:37:57.0
should be not more than one line long if possible2001-10-19 11:37:57.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Kinds of if statement :