Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jvm vs java compiler

 
Rauhl Roy
Ranch Hand
Posts: 401
Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
May I know what are the roles and responsibilities of JVM and compiler.

thank and regards,
rahul
 
Abhinav Srivastava
Ranch Hand
Posts: 354
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Compiler converts your source to byte code (class files), JVM executes this byte code. JVM actually converts the byte code instructions to native (OS specific) instructions. Hence you only need a JVM for every platform while your byte code can remain the same. That's the philosophy of Java, write once run anywhere.
[ September 08, 2008: Message edited by: Abhinav Srivastava ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic