Difference between Java and C

Difference between Java and C

Java and C main difference is that in c have pre-processor, pointer, goto are used but in java they are involved in back end means jvm andle these

JAVAC
Java does not support Operator overloading.C++ supports Operator overloading.
Java does not support Template class.C++ support Template class.
Java does not support Multiple inheritance but it supports interface.C++ supports Multiple inheritance.
Java does not support Global variableC++ support Global variable
Java does not use Pointer.C++ use Pointer.
There are no header files in javaThere is no. of header files In C++.
Java has replace destructor Function with finalize ( ).C++ has a constructor & also Destructor Function.
Java does not support Pre-processor.C++ support Pre-processor.

(Visited 45 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image