Why don't we have a preprocessor (Directives) in java just like C language?
- Posted by: simar qjit
- Posted on: April 07 2005 02:58 EDT
why do we have it in c language?
You can use the C preprocessor with java; you can use the preprocessor with any type of file, really. I work with someone who swares by this, but I think he's sort of nuts.
Ironically Suns own code base needs pre-processing in a few places. With the advent of the annotation processing tool you can now pre-process files before handing to the java compiler :*)