These are the default data types in Java.

Primitive

DatatypeUse-case
bytejust a single byte
short2 bytes
intinteger number
long8 bytes. requires you to postappend ā€˜lā€™ after number
floata float with wordsize
doublea float with length of twice wordsize
booleantrue or false flag
chara single ascii character

Non-Primitive(Advanced)

DatatypeUse-Case
Stringsa list of characters
Arraysarray of elements
Interfacegui