Which class is super class of every class

What is range of java primitive data types ?

Answer : Please see below :

NameWidthRange
byte8–128 to 127
short16–32,768 to 32,767
int32–2,147,483,648 to 2,147,483,647
long64–9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
double644.9e–324 to 1.8e+308
float321.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).

Leave a Reply

Your email address will not be published. Required fields are marked *