• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

JVM and JIT

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can any one please tell me what is JIT and what is its use? Can we use it with JVM.

It will better if you post any link of tutorials regarding that.
 
Ranch Hand
Posts: 1252
Spring Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Abhinaba Basu:
Can any one please tell me what is JIT and what is its use? Can we use it with JVM.

It will better if you post any link of tutorials regarding that.



Dear Abhinaba,

A Java compiler compiles source files (.java) to bytecode files (.class). Sun gives developers a free java compiler which is invoked with the 'javac' command.

A java interpreter is usually referred to as the Java Virtual Machine (or JVM). It reads and executes the bytecodes in the .class files (or in some collection of class files, like a .zip or .jar file). Sun also supplies a free version of the JVM which is invoked with the 'java' command.

Where is gets confusing is when people talk about a Just-In-Time compiler (or JIT compiler). This is actually part of a JVM.

Its purpose is to take the generic (i.e. cross-platform) bytecodes and compile them into more machine-specific instructions (allowing the program to run significantly faster)

. Even though it is referred to as a JIT 'compiler', it is part of the Virtual Machine.

I Hope I make clear you. More more information you can google.

 
This tiny ad is wafer thin:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic