Difference Between C and JAVA





C

Java


Procedure Oriented Programming Language


True Object oriented Programming Language

C  was developed by Dennis Ritchie..


Java was developed by James Gosling and his team. Development began in 1991.


C is a compiled language.

Java is both compiled and interpreted.

C  programs are platform dependent. They need to be compiled for a particular platform.

Java programs are platform independent.

C supports global variables

Java does not supports global variables
C  fully support pointers.
Java has restricted support for pointers. Pointers are supported internally you cannot writer pointer programs.

C  supports structures and union.

Java does not support structures and union.

C supports Preprocessors header files

Java does not C supports Preprocessors header files

C  supports goto statement (however the use of goto is discouraged as not considered a good practice)

Java does not support goto statement (although goto is a reserved keyword in Java)

C provides support both for call by value and call by reference.

Java supports only call by value.

Comments