Home Segments Top Top Previous Next

393: Mainline

Many Java programmers use block-delimiting braces in every if statement that they write, even though the braces often surround just one statement. Such programmers argue that the habitual use of braces reduces errors later on when a program is modified. When braces are not used, it is easy to add a second embedded statement to an if statement or else statement, yet to forget that the modification requires the addition of braces.