answersLogoWhite

0

The main reason for this is that C code compiles down to native machine code. Java bytecode needs to be run in the JVM, which may or may not compile it down to native code.

User Avatar

Wiki User

16y ago

What else can I help you with?

Related Questions

Which language is faster java or c plus plus?

C++ compiles to native machine code whereas Java compiles to byte code which must run within the Java Virtual Machine. The extra layer of abstraction means that, comparing like for like, a C++ program will easily outperform its Java equivalent. Thus C++ is easily the faster of the two.


Why the execution of java program is slower than a C program?

This is because Java runs it's code through a Virtual Machine which compiles it and runs it. C will compile native on your machine and the code will be run directly, without the use of a virtual machine.


Write a c program Fibonacci series using for loop in java?

Exactly what do you mean by 'C program in Java'


Advantages of C over C plus plus and java?

C can be faster than C++ programs, and definitely faster than Java, since Java is primarily interpreted. C is also somewhat less rigid in definitions as well, not as tightly structured as either C++ or Java can be.


Is class is mandatory in program?

In C, no. In Java, yes.


What is a java programming?

A java program is a program that is coded and run in the programming language called java. Java is similar to c++ in structure, and is more common in web apps. C++ is the equivalent for more heavy duty programs such as most software used to compose a java program.


Is Java or C plus plus faster?

Java is considerably more convenient than either C or C++ due to its extremely high level of abstraction. However, that convenience comes at the cost of both performance and efficiency.


How do you connect java with visual studio?

Unfortunately, you can not use Visual Studio to edit Java. Visual Studio can be used to program: Visual Basic C# C++ ASP.NET Anyways to program Java you can use other programs as Eclipse for Java Developers


How do you do some minecraft mods?

You use java to program. I don't program. like c++


What is writing a program in a language such as C or Java is known as?

It is known as 'programming'.


What program was battlefield heroes made with?

C++ mainly and yeah Java but why?


What advantage does Java's break statement have over C's break statement?

They do the same thing, but only the former can be used in a Java program.