Data types in Java Java is statically typed and also a strongly typed language because, in Java, each type of data (such as integer, character, hexadecimal, packed decimal, and so forth) is predefined as part of the programming language and all constants or variables defined for a given program must be described with one of the data types. Data Types in Java Java has two categories of data: Primitive Data Type: such as boolean, char, int, short, byte, long, float, and double Non-Primitive Data Type or Object Data type: such as String, Array, etc. Primitive Data Type Primitive data are only single values and have no special capabilities. There are 8 primitive data types : 1. boolean: boolean data type represents only one bit of information either true or false , but the size of the boolean data type is virtual machine-dependent . Values of type boolean are not converted implicitly or explicitly (with c...