Object Oriented Software Engineering View all facts Glossary Help |
| subject > programming language construct > statement > decision-making statement > Java decision-making statement > Java if statement |
| Java if statement | ||||
| subject | fact | |||
| Java if statement | can omit curly brackets: if(condition)if it contains only a single statement | ![]() |
has form if(condition) | ![]() | |
| has part else block | ![]() | |
| is a subtopic of The Basics of Java | ![]() | |
| is a kind of Java decision-making statement | ![]() | |
| Java statement | is terminated by a semicolon | ![]() |
| statement | should be not more than one line long if possible | ![]() |