Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

diff between JVM and interpreter  RSS feed

 
clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.
what is the difference between JVM and java interpreter ?
 
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i guess the JVM actually reads (interpretes) the bytecodes generated by the compiler
 
(instanceof Sidekick)
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yup, the JVM interprets byte codes. The whole discussion of what compilers and interpreters do gets fuzzy from one language to the next. Java has a bit of both - the compiler generates bytecode and the JVM interprets it. Most times people think of interpreters as reading human readable source code, like Perl. My favorite interpreter (REXX) has a "tokenize" phase when it loads the code. Some implementations let you save tokenized code for faster loading next time. Is that "compiled"??? Not quite, but does it matter? Nah, not much.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!