• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VERY URGENT!!!!!!!!!!!!!!!!!!!!

 
PRATIBHA MATTA
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is Platform independent? Explain in detail?
 
paul wheaton
Trailboss
Pie
Posts: 21341
Firefox Browser IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm moving this thread to "Java in General (beginner)"
 
Brett Knapik
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
platform independence is to software like asking a question and using "VERY URGENT!!!" as the topic. It can apply to anything at all.
 
PRATIBHA MATTA
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
THANX A LOT.........
BUT IF U TELL ME MORE SO PLEASE..........TELL ME
 
shree vijay
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sajan Joseph
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Brett Knapik
Ranch Hand
Posts: 255
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sajan Joseph
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind Brett. Keep tuning your button.
SJ
 
Tom F
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it is Wolf.
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there is a different interpretation of the story in different countries ... anyway please try to stick to the topic.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic