Saturday, February 10, 2007

What is Pure Java? I've heard that its 100%, so if I only use Java code and no external applications, is my code 'pure'?

100% Pure Java code is code that conforms to the Java ideal of universal portability. Writing an application that doesn't exploit operating system/platform specific features is a great start, but you also have to write the code in a platform neutral way. This includes things such as not hardwiring the '/' symbol as a file separator on Unix systems, as this will fail on a Wintel system that use '\'. If you don't rely on the core Java API's, and instead use native methods, this can also disqualify an application from being 100%.


SOURCE : www.referjava.com

No comments: