One of my colleagues, who is new to Java, asked me how to do ifdefs in Java? I said there is no way.

Why?
The basic tenant of Java is “write once, run anywhere without code changes”. So, ifdefs do not make sense in Java.

Advertisements