This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes what works first compiler or interpreter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "what works first compiler or interpreter" Watch "what works first compiler or interpreter" New topic
Author

what works first compiler or interpreter

geet
Greenhorn

Joined: Feb 04, 2002
Posts: 6
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

Joined: Jan 28, 2002
Posts: 107
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

Joined: May 10, 2001
Posts: 3244
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!!


Dave
geet
Greenhorn

Joined: Feb 04, 2002
Posts: 6
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

Joined: Feb 04, 2002
Posts: 6
really it's a great help.thank u eriK
Jim Yingst
Wanderer
Sheriff

Joined: Jan 30, 2000
Posts: 18671
Ahem. Be sure to read Dave Vick's message too.


"I'm not back." - Bill Harding, Twister
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: what works first compiler or interpreter
 
Similar Threads
Which version of ....... ?
JVM internal working principle
Jdk and Jvm
JIT
jvm is an interpreter.....