The C++ and Java languages define many of the same types ” int , short , long , float , double , to name a few. Java does not support structures or unions so there are no struct or union types in Java. Java also does not support unsigned integer types. All Java integral types (including char ) are signed. Both Java and C++ define a boolean type. Java calls it boolean . C++ calls it bool . Other types not included in the Java language are pointer and void types. Java provides the byte type, representing a single byte of data, that C++ does not. |