platform independence is where you can be on any type of box linux, windows, solaris etc. and as long as they have a Java Virtual Machine on their box any pure java program will run. ------------------ I wish there was a button on my monitor to turn up the intellegince. Theres a button called 'brightness' but it doesn't work
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning."
Platform independence can be just explained by the phrase: "write once; run anywhere" You can write a piece of code for one platform (let us say, windows 98) and can run in any other (say Win NT,Mac) There need not be any change in code. This is the speciality of Java. HTH, ------------------ Regards, Shree
Originally posted by PRATIBHA MATTA: THANX A LOT......... BUT IF U TELL ME MORE SO PLEASE..........TELL ME
Dear Pratibha, If you have done programming in any other language, you would have found that a program written in one platform cannot be run in another platform. When one says platform, it refers to both the computer hardware as well as software. For eg. a C program written and compiled in an IBM Compatible, under DOs cannot be run on a Sun Sparc station running solaris operating system. Similarly a C program written and compiled in Unix/ Linux cannot be run on a Windows machine. Java circumvents this problem by using Java Virtual Machine and platform independent bytecodes. Normally when you compile a program in C, you get an executable file, which can be directly executed by the operating system. But when you compile Java source code, what you get is a .class file which is said to be ByteCode. To exceute this byte code, you need a virtual machine which is a software that is acting as a translator between your operating system/ hardware and your program. so your program is converted into machine code by the JVM. This byte code/ JVM makes all java codes platform independent , that is ' Write once- in any platform, and Run anywhere - in any platform. Hope this helps. I still wonder how urgent this was to you. Was it just a ploy to attract attention. Remeber if it is , peopple will start ignoring your messages after some time. Just like the boy who cried tiger once to often just for fun... Cheerio, SJ
Joined: Oct 15, 2000
I thought it was wolf....not tiger ------------------ I wish there was a button on my monitor to turn up the intellegince. Theres a button called 'brightness' but it doesn't work