Java vs C language

The major difference between C and Java is that Java is an object-oriented language and has a mechanism to define classes and objects in Java. The features of C that are not included in Java are:

  • No unique statement keywords of C size and typedef
  • No data types, such as struct and union .
  • Java does not define the type modifier keywords, such as auto , extern , register , signed and unsigned .
  • No support for the pointer type
  • Non-availability of preprocessor
  • Java requires that the function with no argument must be declared with empty parenthesis and with the void keyword.
  • New Java operators , such as instanceof and >>> .
  • Java programming has labeled break and continue statements.