Why Java codes take more run time than C/C++ ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rajesh V
    New Member
    • Dec 2007
    • 16

    Why Java codes take more run time than C/C++ ?

    Why Java codes take more run time than C/C++ ?
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    Java runs itself on the Java Virtual Machine, which is a simulation of a processor. So essentially, a Java program must run on the JVM, which in turn must run on your computers processor, and communication must occur between the two.

    In C/C++, your code is compiled specifically to run on that processor. It runs on that processor with no 'middle-man' between the two.

    Comment

    • Andr3w
      New Member
      • Nov 2007
      • 42

      #3
      Well, languages that use interpreters tend to be slower than languages that use compilers....

      Comment

      • Rajesh V
        New Member
        • Dec 2007
        • 16

        #4
        Thanks for your reply.

        Comment

        Working...