What Is The Difference Between C Language And Java Language?

12

12 Answers

ayesha sana Profile
ayesha sana answered
Both Java and C are programming languages.

The differences between them are as under:

• The Java has no pointer in it but the C has pointer in it.
• The referencing system automatically checks in Java but not in C.
• In Java, there is no concept of global variable where as the C language use the global variable to access all the functions.
• C language supports the multiple inheritance concepts and Java language do not support it
• Templates are not supported by the Java where as C language supports the template to allow users to create stacks.
• Operator overloading is existing in C language but Java not support it. The operators are in incremental or decremented ways.
• The preprocessors are used in C language where as Java do not support it. Preprocessor like # defines and # include.
• In C the objects can be manipulated automatically with the help of reference.

Although there are lots of differences but there are many similarities as well in the C language and the Java like local object declaration and method overloading.

Anonymous Profile
Anonymous answered
C uses concept of structures (not object oriented).
In C we use the concept of pointers whereas there are no pointers used in JAVA
In C the programmer needs to manage memory manually. "malloc()" and "free()" are the fundamental memory allocation library calls.
In C the declaration of variables should be on the beginning of the block.
C supports go to statement, struct and union unlike Java
C is compiled to the machines "native language" so it's execution is much faster than Java's.
No reuse in code and by default members are public.
C programs will have a larger memory footprint than an equivalent program written in pure machine code, but the total memory use of a C program is much smaller than the a Java program because C does not require the loading of an execution interpreter like the JVM
konduru yedukondalu Profile
Java does not include the c-unique statement keywords such as size of,type def but c can.
Java does not contains the datatypes of struct,union but c can.
Java does not define modifiers keywords like into,extern,regesters,signed and unsigned etc but c can.
Java does not have pre-processor statements like #include,#define,#if def but c can.
Java is a interpreter language.
Java is a platform independent.
john caleb Profile
john caleb answered
Java is preferred mostly for all web based application when compared with C. C too, has its own advantages as it is more frequently used as a powerful language to develop device drivers and for Telecom products which use both the power of C and C++.
Anonymous Profile
Anonymous answered
The origination of class  and object in java and c++ is base in the idea of structure in c language . C++ is having some advancement on the basis of the idea of c language and java is the advancement language of c++, so in direct way you can say the c langauge inspite of procedural language is based of object oriented language
Anonymous Profile
Anonymous answered
The main difference between java and c are the following
1:-SECURITY:= in java we use a garbage collector the collects all the garbage values after the execution and after that delete these values . By this java is provide the security to user .
2:-MAINTENANCE:= In C we need more maintenance in comparasion to JAVA .
3:-USES:= JAVA is made on the basis on real world so it is very easy to understand by compair with real world . C is a structured language and it has no relation from real world so compairly   difficult to understand .
Robin Macson Profile
Robin Macson answered
There are following difference between java and c.

1. JAVA is Object-Oriented while C is procedural. 

2. Java is an Interpreted language while C is a compiled language.
3. C is a low-level language while JAVA is a high-level language.
4. C uses the top-down {sharp & smooth} approach while JAVA uses the bottom-up {on the rocks}approach.
5. Pointer go backstage in JAVA while C requires explicit handling of pointers.
john caleb Profile
john caleb answered
C and JAVA are of two different paradigms. C follows structured programming while Java follows object oriented programming.
john caleb Profile
john caleb answered
C requires explicit handling of pointers while in Java pointers are handled internally.C is platform dependent while Java is platform independent.Java is more robust and highly secure compared to C language.
john caleb Profile
john caleb answered
There are many features that are not present in C but can be seen in Java.They are inheritance,class,object,polymorphism,virtual class,abstract class,constructors,destructor,message passing,information binding etc.

Answer Question

Anonymous