Answer:
A bool can hold only true or false values.
A char can hold maximum 65535 characters.
An int can hold maximum positive value of 2,147,483,647.
A float can hold maximum positive value of 3.4 x 10^{38}.
Explanation:
Primitive data types in Java language can be categorized into boolean and numeric data types.
Numeric can be divided further into floating point and integral type. Floating data type includes float and double values while and integral data type which consists of char, int, short, long and byte data types.
Every data type has a range of values it can hold, i.e., every data type has a minimum and maximum predefined value which it is allowed to hold. The intermediate values fall in the range of that particular data type.
Any value outside the range of that particular data type will not compile and an error message will be displayed.
The data types commonly used in programming are boolean, char, int and float.
A boolean variable can have only two values, true or false.
A char variable can hold from 0 to 65535 characters. Maximum, 65535 characters are allowed in a character variable. At the minimum, a char variable will have no characters or it will be a null char variable, having no value.
An int variable has the range from minimum -2^{31} to maximum 2^{31} – 1. Hence, the maximum positive value an int variable can hold is (2^{31}) – 1.
A float variable can hold minimum value of 1.4 x 10^{-45} and maximum positive value of 3.4 x 10^{38}.
The above description relates to the data types and their respective range of values in Java language.
The values for boolean variable remain the same across all programming languages.
The range of values for char, int and float data types are different in other languages.