Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

what works first compiler or interpreter

 
geet
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to find out it's answer but with no success.in the background what works first, it's the compiler or interpreter and why.
 
Erik Dark
Ranch Hand
Posts: 107
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First you write your source code (.java), which is compiled (c:\javac HelloWorld.java) to byte code (.class).
Then, to launch your program, you must run it in a JVM. This is accomplished by invoking the Java interpreter (c:\java HelloWorld).
Erik Dark
 
Dave Vick
Ranch Hand
Posts: 3244
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
geet
Welcome to the Java Ranch, we hope you’ll enjoy visiting as a regular however,
your name is not in keeping with our naming policy here at the ranch. Please change your display name to an appropriate name as shown in the policy.
Thanks again and we hope to see you around the ranch!!
 
geet
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Erik Dark:
First you write your source code (.java), which is compiled (c:\javac HelloWorld.java) to byte code (.class).
Then, to launch your program, you must run it in a JVM. This is accomplished by invoking the Java interpreter (c:\java HelloWorld).
Erik Dark
 
geet
Greenhorn
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
really it's a great help.thank u eriK
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ahem. Be sure to read Dave Vick's message too.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic