hi every body, i have very confusion with interpretor in jva, why we use it

Recommended Answers

All 2 Replies

I thınk we do not always.

You wrıte java code. Compıler turns these code into java byte code, which is OS independent code. Then an interpreter, which we call JVM executes thıs code like an operating system. This allows java to be OS independent.

Or JVM compiles the code just-in-time to native machine code which the OS can run.

Ohhh...

  1. It seemed like a good idea at the time.
  2. You got a problem with that?!?
  3. Really, it can interpret or compile the byte code, depending on its mood.
  4. Generally, these days, the JIT (Just-In-Time) compiler does compile the byte code to machine language.
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.