#java #datatypes #corejava #automation #selenium
In this session you will learn what are data types in Java, how much storage is occupied for each data type....
Note : Be familiar with Data types to learn and proceed further.
Data types in Java represents size and type
Primitive Data Types
Non Primitive Data Types
======================================
Primitive Data Types
======================================
boolean
byte
char
short
int
long
float
double
Size :
======================================
Data Type Default Value Default size
======================================
boolean false 1 bit
char '\u0000' 2 byte
byte 0 1 byte
short 0 2 byte
int 0 4 byte
long 0L 8 byte
float 0.0f 4 byte
double 0.0d 8 byte
コメント