Perry Smith

Java Questions & Answers

Home / Java Q & A Page 2 / Java Q & A Archive Main Page

9-25-98

BYTECODE question


      Advantages of producing bytecode rather than machine code?

      and

      Disadvantages of bytecode.

      please email me the response!
      quizmati@asu.edu

      quizmati

Response
9-25-98

Re: BYTECODE question


      disadvantages: 1) having to have a runtime-
      enviornment that is able
      to convert the bytecode into
      machine code,
      2) speed (from prev. reason),
      3) distribution (from prev reason)

      advantages: 1) platform-independence,
      2) security


      solutions to disadvatages:
      1) no way around the need for an enviornment,
      2) optimized code and the line of Just-In-Time
      ....(JIT) compilers which increase performance of
      ....Java-based apps
      3) b/c you need a Java runtime-enviornment to ....execute Java classes, there could be
      ....be distribution problems (not everyone has
      ....the necessary Java classes, which are a zip
      ....file of over 10MB), but there is the JRE
      ....which is like a stripped-down version of the
      ....common Java classes which can be included
      ....with every app, allowing a "HelloWorld" app
      ....to take up less than 800KB of disk space.




      MikeD

Home / Java Q & A Page 2 / Java Q & A Archive Main Page