#Java #CoreJava #DataTypes #Automation with Selenium #Java
In this session you will learn how to create data type and variable and how to store values and what are the ranges for each data types with examples
=============================
Data ranges for data types
=============================
Boolean - true , false
char '\u0000' (0) to '\uffff' ( 65535)
byte 1 byte -128 to 127
short 2 bytes -32,768 to 32,767
int 4 bytes -2,147,483,648 to 2,147,483,647
long 8 bytes -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807
float 4 bytes 7 decimal digits
double 8 bytes 16 decimal digits
======================================
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
コメント