answersLogoWhite

0

What is difference between C and Java?

Updated: 9/11/2023
User Avatar

Wiki User

11y ago

Best Answer

+

A long time ago, many people believed Java was slower than C because Java had to run through a virtual machine. Today however, Time and speed aren't really affected by the programming language or the used technology as much as affected by memory cards capacity and processors speed (Clock rate). Hench programmers and developers started looking for the most powerful yet easy to 'learn and work with' programming language. And there came Java with the multi-platform support, Object oriented methodology and other great capabilities and features.

On the other hand, General Purpose applications are still developed using C++ because it doesn't need any intermediate software to run.

and i think that java it's been improved everyday by the newest releases of the implementation of the virtual machine.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

The main differences between Java and C are speed, portability, and object-orientation.

Java was created for the purpose of making a language that could be implemented on many different types of computers (cell phone, mac, PC, linux, etc.) C on the other hand can only be run on a computer of the same type as the one that compiled the program.

One of the costs of this portability in Java is speed. On numerous benchmarks Java still lags behind C in terms of speed, but that gap is narrowing.

Java is also object-oriented, whereas C is not. Java allows a user to create classes that contain data and methods. C is not capable of doing that.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is difference between C and Java?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Major difference between c and java?

Java is object oriented, C is not...


What is the difference between c plus plus and java programming?

Java doesn't have pointers. C++ has pointers.


Difference between java and C plus plus?

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


What is difference between exception handling in C and Java?

Easy: there is no exception-handling in C.


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.


What is the difference between java compiler and C compiler?

Greetings Technologist. The Java compiler compiles Java code, whereas the C compiler compiles C Code HTH Richard Wolf Software Architect


What are the main differences between Java and C plus plus?

the difference is that c plus is better because you get big grades


What is the difference between javascript and java programming langugage?

JavaScript and java are 2 completely different things. JavaScript is in web pages to make it more interesting and java is a complex computing language devised from c + c++.


What is the difference between java and c sharp?

You can check out the wikipedia link provided in the related links for this question


Major difference between java and cpp?

CPP typically stands for the C PreProcessor, which does macro expansion on C source code. What I suspect you want to know are the differences between C++ and Java. See the links below for more information on that topic.


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.


What is difference between java 2 and java 5?

They are different versions. Java 5 is newer than Java 2. Think of it like the difference between the Playstation 1 and the Playstation 3.