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

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -