My missing class

Today I miss my java class due to I got sick. But my friends thought me my missed class. Two of my friends helped me. Today class was full of Data Types Data Type consist of int, byte, long, double, float, short, string, char, boolean

Also we thought with binary and decimal number. I have doubt on that topic but friends figure it out.

Type NameBytesOther NamesRange of Values
int4signed-2,147,483,648 to 2,147,483,647
unsigned int4unsigned0 to 4,294,967,295
__int81char-128 to 127
unsigned __int81unsigned char0 to 255
__int162shortshort intsigned short int-32,768 to 32,767
unsigned __int162unsigned shortunsigned short int0 to 65,535
__int324signedsigned intint-2,147,483,648 to 2,147,483,647
unsigned __int324unsignedunsigned int0 to 4,294,967,295
__int648long longsigned long long-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
unsigned __int648unsigned long long0 to 18,446,744,073,709,551,615
bool1nonefalse or true
char1none-128 to 127 by default

0 to 255 when compiled by using /J
signed char1none-128 to 127
unsigned char1none0 to 255
short2short intsigned short int-32,768 to 32,767
unsigned short2unsigned short int0 to 65,535
long4long intsigned long int-2,147,483,648 to 2,147,483,647
unsigned long4unsigned long int0 to 4,294,967,295
long long8none (but equivalent to __int64)-9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
unsigned long long8none (but equivalent to unsigned __int64)0 to 18,446,744,073,709,551,615
enumvariesnone
float4none3.4E +/- 38 (7 digits)
double8none1.7E +/- 308 (15 digits)
long doublesame as doublenoneSame as double
wchar_t2__wchar_t0 to 65,535

Leave a comment

Design a site like this with WordPress.com
Get started