Sunday, July 02, 2006

java #1

Java is platform independent which means you write code once and it can be run on any platform.

You compile your .java files into .class files or package .class files into .jar files using java compiler. Java complilers are platform dependent so you have compilers for windows, linux, etc platforms. The .class/.jar files are run on something called java runtime environment, JRE. These JREs are platform dependent again.

So the idea is that .class files are platform independent but java compilers and runtime environment are platform dependent. So as developers you do not have to worry about platform issues.

No comments: