Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

javac and java (compiler and executable)

 
Ratheesh Narayanan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Can any one tell me, in which language java compiler and the interpreter is developed? If java compiler (javac) is written in java language itself how it can be an exe(executable) file? Is this interpreter means JVM?

Thanks in advance,
ratheesh
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15272
37
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no single answer to your question, because different companies are making different implementations of the Java VM and compiler.

Sun's Java compiler seems to have been written at least partly in Java, because there was a class com.sun.tools.javac.Main in some versions of the JDK (not sure if it still exists in Java 5.0).
 
Devesh H Rao
Ranch Hand
Posts: 687
Hibernate jQuery Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by ratheesh narayanan:
Hi,

Can any one tell me, in which language java compiler and the interpreter is developed? If java compiler (javac) is written in java language itself how it can be an exe(executable) file? Is this interpreter means JVM?

Thanks in advance,
ratheesh


It's in C
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic