Search This Blog

Java : Fundamental Question and Answer

Does the use of a code block introduce any run-time inefficiencies? In other words,
does Java actually execute the { and }?



No. Code blocks do not add any overhead whatsoever. In fact, because of their ability
to simplify the coding of certain algorithms, their use generally increases speed and
efficiency. Also, the { and } exist only in your program’s source code. Java does not,per se, execute the { or }.