answersLogoWhite

0

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.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

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.


Difference between java and C plus plus?

java is an advanced object oriented programming language than c++


What language is completely object oriented c plus plus or java?

Java is the complete object oriented Programming Language as every thing in java is an object,


Difference between procedure and function in C or C plus plus or Java language?

In C there are functions only, In Java methodsonly (static methods as well), in C++ both.


Who created 'C Plus Plus ' language and when?

C ++ is a computer progamming language just like Java, Python and Perl or even its predecessor 'C'.


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.


Is c plus plus and java are the same?

No. Java takes some ideas from C++, so there are certain similarities, especially in the basic syntax. But it is a different language.


Is it necessary for you to learn c and c plus plus before you go for java?

No. You can learn Java first if you want. However, from a language perspective, C++ and Java are nearly identical1, and C is the predecessor of C++, so some people feel that the proper sequence is C, then C++, then Java. It is entirely up to you. ----------------------------------------------------------------------------- 1Nearly identical, that is, from a language perspective only. The environment and libraries are vastly different between C++ and Java.


What is the difference between cc plus plus and java?

C is a procedure oriented language ,Where C++ & java are object oriented language.But java is platform independent.So generally C is called POP.C++ is called OOP.But java is OOP , which is platform independent.If java does not support primitive data type then it is called as pure object oriented language.


Writing a program in a language such as c plus plus or java is known as what?

Object Oreinted Programming


Is it important to have c plus plus for computer engineering?

Yes, because C++ is a very popular language, and many systems are written in C, C++, or Java. (C is the predecessor of C++, and Java is similar to C++ in many ways.)


Why is java's portability better than c plus plus?

As we know that java is a plateform independent language and the main advantage of java is that it can support to any operating system and can be executed to any machines without any modifications.Due to the use of class in java it has become more easier to understand the program compared to c plus plus.Hence,java is portable than c plus plus