• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Is JAVA 100% platform independent????

 
kotha vijaybabu
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi, i heard that JAVA is not completely platform independent... is it true

plz...explain in detail..



cheers

vijay
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java is platform independent because you can take byte code compiled on one platform and run it in a compatible JVM on some other platform. Given a new platform, you can't run Java at all until somebody writes a JVM so I wouldn't count on running on a TRS80 real soon.

It's easy to write code that breaks out of the JVM with JNI or exec() or even line-end schemes. And some JVMs have subtle differences in behavior. These things mean there is code that won't run on every JVM & platform combination.

Does that line up with your question?
 
Henry Wong
author
Marshal
Pie
Posts: 21417
84
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Given a new platform, you can't run Java at all until somebody writes a JVM so I wouldn't count on running on a TRS80 real soon.


Stan,

That sentence implies that the TRS-80 is a new platform...

Henry
 
arjun krishna
Greenhorn
Posts: 7
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we cannot guarantee that same byte code will give same response in awt even though they are running in same platform with different operationg systems
 
kotha vijaybabu
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank u James

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic