14 Difference between C language and Java language

14 Difference between c language and Java language

Difference between C language and Java language

C and Java both are programming language but still there have many difference between C language and Java language. C is structured programming language which  is developed by Dennis Ritchie at Bell Laboratories in 1972. While Java is problem oriented programming language which is developed by Canadian computer scientist James Gosling at Sun Microsystems in 1995 and now it is acquired by Oracle. So let’s see the basic difference between C language and Java language.

 

Also Read: Basic difference between C++ and Java.

Also Read: What is Java ? Introduction of Java Programming Language

Also Read: Java main() method analysis – why it is public static void main(String[] args) ?

14 Difference between c language and Java language :

Sr. No. C Java
1. C is Procedure Oriented Programming. Java is Object Oriented Programming.
2. C uses compiler only.  Java uses compiler as well as Interpreter.
3. C supports pointer Java doesn’t support pointer.
4. C supports goto statement. Java doesn’t support goto statement.
5. C is mainly used for System Programming. Java used for application programming. It is widely used in window-web based, enterprise and mobile applications.
6. C supports unsigned datatype. Java doesn’t support unsigned datatype.
7. C is platform-dependent Java is platform-independent
8. C supports preprocessors,Headerfiles. (ex. #define, #include). Java doesn’t support preprocessors,Headerfiles. whereas it uses import statements.
9. C supports auto, extern, register variable. Java doesn’t support auto, extern, register variable.
10. C supports sizeof() operator. Java doesn’t support sizeof() operator.
11. C supports structure and union. Java doesn’t support structure and union.
12. C doesn’t support for inheritance concept. Java supports for inheritance concept.
13. Memory management is done manually. Memory management is done automatically by Garbage collector.
14. After compilation C will generate executable native code. After compiled source code Java will generate Bytecode.

 

So now you got all 14 basic difference between C language and Java language and can distinguish both programming language and work on it.

Thank you 🙂

Stay Connected with PLace4Java and follow us on our Facebook Page.

1 Trackback / Pingback

  1. Basic differences between C++ and Java Programming language

Leave a Reply

Your email address will not be published.


*