1. Explicit Pointers (Java has references, but they are implicit).
2. Ability to treat arrays as pointers and to use them using pointer arithmetic.
3. Explicit memory allocation/deallocation using malloc and free.
4. Ability to declare functions with just parameter types. (Java needs parameter names)
5. Ability to declare functions with variable parameters. (In Java you have to do this using Vector/ArrayList).
This is since you said C and not C++. Also, there are other differences that cannot be considered features, like having to declare variables at the beginning of a block.
2007-10-31 22:55:00
·
answer #1
·
answered by StormBringer 3
·
0⤊
0⤋
Somehow Y Q got even the first point wrong himself, C is not object-oriented nor obj-based there is no classes at all.
C has memory arithemetic meaning complete arbitrary manipulation of RAM, no other language has it. Java included.
C can have pointers and values in the same program with struct; Java has only pointers to class objects or values of intrisics.
C include files statically but Java and other modern languages do it with libraries in namespaces.
API calling is quite off-topic, unless you do Windows programming.
2007-11-01 05:56:43
·
answer #2
·
answered by Andy T 7
·
0⤊
0⤋
When you say "C" are you exclusively talking about just "C" or do you mean collectively to include "C++" too? ...Because if you mean just "C" then there are a host of differences such as "C" not supporting classes, polymorphism, and no garbage collection, and "C" giving access to pointers while Java hides them.
When compared again C++ then Templating is not in Java, Operator Overloading, aliasing, and pointer availability.
2007-11-01 05:52:08
·
answer #3
·
answered by Questrade Coupon Code 4
·
0⤊
0⤋
C has Pointer while Java has'nt
C has manuall garbage colelction while java has automatic garbage collection
C is effcient to low level programming also while java is best for applications
2007-11-01 07:03:29
·
answer #4
·
answered by Shariq (http://coinsindia.info) 5
·
0⤊
0⤋
The letter C has an opening on the right side. None of the letters in Java has an opening on the same side of the letter.
(Grin)
2007-11-01 05:49:12
·
answer #5
·
answered by Jason 5
·
0⤊
0⤋
C can extends from various class/file at the same time, whereas java only can inherit from one class.
C easier to interpret with windows api via direct function call (refer to msdn library) by using ms visual / studio. whereas, java need to install jre (java runtime environment) with jdk (development kit)to develop and execute it (some of windows api function still need to works with ms visual(.net))
C is some kind of basic language (function(structure) oriented) for programmers, as a start up to learn c++, vb and so on. java is another type of programming method(object oriented) which define things in object way in programming code.
2007-11-01 05:29:08
·
answer #6
·
answered by y q 1
·
0⤊
2⤋