I'm having difficulties in finding a duplicate or explanation, as I don't know the name for the syntax.
Earlier today, I wrote a piece of code containing an extra ;
:
if (condition); {
try {
// something
} catch (Exception e) {
// something
}
}
I know that the if statement is interrupted by the ;
. What I'm interested in is the block
{
// something
}
How is that block ({}
) without a leading if
, for
, ... called, and what can I use it for?