There is a Boolean data type in Java, True is true and False is false. Also, only Boolean values can be placed in the if () brackets.
C's basic data types are basically consistent with Java, but C has more pointer types. Pointers are the focus of the C language.
It is important to note that Java defines global variables automatically to help you to complete the initialization, the number variable will automatically assign the 0,char type variable will automatically assign ' 0 ', object variable pairs are automatically assigned null. When defining a local variable, Java does not automatically initialize it but error.
C automatically assigns 0 when defining global variables, and random numbers are automatically assigned when local variables are defined. (c is a weak language, in some places it will not error, it makes it difficult to find errors.) )
Resources:
Http://www.cnblogs.com/mjios/archive/2013/03/13/2957946.html
C language Learning--c and Java language different points