Good programming practices

Archive for September, 2011

Java code conditional compilation

September 8th, 2011

Java language doesn’t have a preprocessor like C. But compiler optimize the code – if it’s sure, that code can’t be reached, it will not be included in the output byte code. An optional code can be placed inside if statement or by tertiary statement, where condition can be evaluated by compiler. More…