JAVA basic data types and the reference data type

Basic data types

1. Integer: byte, short, int, long
   Bytes: 1248
2. Float: float, double
    Bytes: 48
3. Boolean: true, false
     Bytes: 1         
Reference data types
1. Class
2. Array
3. Interface
A byte accounted for eight
Digital literal: a digital code which appears
If is an integer, it will default to type int
If a decimal, the default type double
Literals: the code is "" contained in the content.

Guess you like

Origin www.cnblogs.com/yindong2019/p/11780722.html