Java Newsletter by Glen McCluskey - Issue 11
@eZine
Published in
Java Newsletter
· 2 years ago
... s into a source file. Java packages and naming conventions and import directives (see newsletters #003, #004, and #005) mostly eliminate the need for #include. Finally, the preprocessor has directives like: #ifdef XXX stuff ... #endif to perform conditional compilation, typically on a per-platform basis. Java is a platform-independent language, and in theory such a directive is not needed. In practice, however, it would be useful to be able to do conditional compilation. For example, the AWT (Abstract Windowing Toolkit), may perform differently across platforms, due to the vagaries of the underlying window systems. There's nothing to stop you from ...