The basic variable types are similar to C. The basic types are:
int (4 bytes), long (8 bytes), short (2 bytes)
float (4 bytes), double (8 bytes)
char (2 bytes)
boolean
Some points to note.
char c; c = 'a'; c = 'X'; if (c != '}') {...}
boolean b, c = false; b = true; b = (i == 7);
Another point is that a typo like if (x = 7) ... will be caught as syntactically illegal since x = 7 returns 7, not the boolean value true.