Difference between Java and C language

Both Java and C are the most popular programming languages in programming world.Due to their various important characteristics and features both of these languages are widely used globally.

On the basis of their features following are the important differences between Java and C

Sr. No.KeyJavaC
1IntroducedJava was developed after C as compared on introducing year.It was developed by James Gosling in 1995.On other hand C was introduced before Java and was developed by Dennis M. Ritchie between 1969 and 1973.
2TypeJava is a high level language and is more data oriented also known globally as Object-Oriented language.On other hand C is a middle-level language and is more procedure-oriented also known globally as Procedural Programming Language.
3CompilationUpto some extent it could be stated as there is no compilation in Java as it is an Interpreted language that is in Java, the code is first transformed into bytecode and that bytecode is then executed by the JVM (Java Virtual Machine).On other hand C is a compiled language that is it converts the code into machine language so that it could be understood by the machine or system.
4Functional UnitsAs already mentioned Java is an Object Oriented language and hence has Objects as the functional units.On other hand C is a Procedural Programming Language and hence has functions as the functional units.
5Inheritance and ThreadingAlong with the other features of OOPs Java also contains the property of Inheritance which is very useful in code reuse ability.Also Java supports concept of Threading.On other hand C does not supports Inheritance which is very useful for code re usability.Thus C is not preferred when one has to relate the things according to the real world as per inheritance relation.Also C does not supports Threading.
5Platform dependencyJava is platform independent.On other hand C is platform dependent.

Updated on: 24-Feb-2020


Kickstart Your Career

Get certified by completing the course

Get Started