What is range of java primitive data types ?
Answer : Please see below :
|byte||8||–128 to 127|
|short||16||–32,768 to 32,767|
|int||32||–2,147,483,648 to 2,147,483,647|
|long||64||–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807|
|double||64||4.9e–324 to 1.8e+308|
|float||32||1.4e–045 to 3.4e+038|
boolean : The boolean data type has only two possible values: true and false. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its “size” isn’t something that’s precisely defined.
char : The char data type is a single 16-bit Unicode character. It has a minimum value of ‘\u0000’ (or 0) and a maximum value of ‘\uffff’ (or 65,535 inclusive).