Obscure conditional Java Syntax -


we found, colleague , i, strange compiling syntax if conditional syntax :

if (true); {   foo(); } 

is there here explaining strange syntax? thx.

the first part, if (true); do-nothing conditional ends @ ;. rest call foo() inside new scope block. should find foo() called.


Comments

Popular posts from this blog

python - Why doesn't list have safe "get" method like dictionary? -

razor - Is this a bug in WebMatrix PageData? -

sql server - Stored procedure -