Programmer Coding

data Types

there are mainly two type:-

  1. Primitive data type.
  2. Non primitive data types
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

 

Leave a Comment

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

Scroll to Top