filmov
tv
Java Primitive Data Types | Java (Java Tutorial)

Показать описание
******************** Java primitive data types:
→ Data types define the sizes and values that can be stored in the variable.
→ Java data types are classified into two types of Primitive data type and → Non-primitive data types.
Primitive Data Types:
→ Java Primitive data types are boolean, char, byte, short, int, long, float and double.
Java Non-Primitive data types:
→ Java Non-Primitive data types are classes, Interfaces, and Arrays.
Java Boolean Data Type:
→ It stores only 2 values either true or false.
Java Byte Data Type:
→ It is an 8-bit signed two's complement integer.
→ It's value-range lies between -128 to 127.
→ Its default value is 0.
Java Short Data Type:
→ It is a 16-bit signed two's complement integer.
→ Its value-range lies between -32,768 to 32,767.
Java Integer Data Type:
→ It is a 32-bit signed two's complement integer.
→ Its value-range lies between - 2,147,483,648 to 2,147,483,647.
Java Long Data Type:
→ It is a 64-bit two's complement integer.
→ Its value-range lies between -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807.
Java Float Data Type:
→ It is a 32-bit.
→ It holds the floating or decimal values.
Java Double Data Type:
→ It's a 64-bit.
Java Character Data Type:
→ It is a 16-bit Unicode character.
→ It can be used to hold all the language characters using Unicode.
#PrimitiveDataTypes #Java #programmingline #rakesh #rake
*******************************************************
IMPORTANT PLAYLISTS:
Important Links:
*******************************************************
Subscribe my YouTube channels:
*******************************************************