java tutorial - C Vs Java - java programming - learn java - java basics - java for beginners
Difference between c and java
Comparison Index | C | Java |
---|---|---|
Platform dependent | C is a platform-dependent. | Java is platform-independent. |
Goto statement | C supports goto statement. | Java doesn’t support goto statement. |
Pointer | C supports pointers | Java doesn’t support pointer. (support only implicit pointer) |
Structures and unions | C supports structures and unions. | Java doesn’t support structures and unions. |
Compiler | C uses Compiler only. | Java uses both compiler and interpreter. |
System programming | C is mainly used for system programming. | Java is mainly used for application programming. It is widely used in window, web-based, enterprise and mobile applications. |
sizeof() operator | C supports sizeof() operator. | Java doesn’t support sizeof() operator. |
Unsigned Datatype | C supports unsigned datatype. | Java doesn’t support unsigned datatype. |
Auto, extern and register variable | C supports auto, extern and register variable. | Java doesn’t support auto, extern and register variable. |
Programming | C is Procedure Oriented Programming. | Java is Object Oriented Programming. |
Header files | C supports Preprocessors, Headerfiles. (#define, #include). | Java doesn’t support Preprocessors, Headerfiles. (#define, #include). |
C Compiler
Learn Java - Java tutorial - c compiler - Java examples - Java programs
Java Compiler
Learn Java - Java tutorial - java compiler - Java examples - Java programs