Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

RunTime Execution  RSS feed

 
RavjeetSingh Bagga
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It takes a long time to run java programs.Isnt it unfair to first compile the programs, then the JVM to Interpret it and then give the output.Java is nowhere near the execution time of C C++ programs time execution.
------------------
 
Peter Haggar
author
Ranch Hand
Posts: 106
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are running with a JIT, then you are not interpreting, but compiling on the fly an running natively.
Also, Java's primary design goal is portability. Performance, though, has been an issue. However, with JITs, Hotspot, and good design and coding techniques, many of these performance limitations can be negated.
Peter Haggar
------------------
author of: Practical Java
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!