Tuesday, October 12, 2010

JAVA-----

we already know that java is the platform independence programming language.....why? need to know...
so first of all i want discuss that what is the the meaning of cross platform....
It is a quality or feature of an particular application or multiple application which can be easily implemented on other computer platforms.

Two types of cross platform

1. Which requiers some building block or called as compiler
2. Another one is which doesn’t need any thing and run without any preparation

why c/c++ is not a platform independence language.....

Platform independent means the execution of the program is not restricted by the type of os environment provided

Java is a platform independent language becoz of the bytecode. In java, when we execute the source code...it generates the .class file comprising the bytecodes. Bytecodes are easily interpreted by JVM which is available with every type of OS we install.
Whereas C and C++ are complied languages which makes them platform dependent. The source code written in C / C++ gets transformed into an object code which is machine and OS dependent. That's the reason why C and C++ languages are termed as Platform Dependent.

No comments:

Post a Comment