These are the default data types in Java.
Primitive
Datatype | Use-case |
---|---|
byte | just a single byte |
short | 2 bytes |
int | integer number |
long | 8 bytes. requires you to postappend ālā after number |
float | a float with wordsize |
double | a float with length of twice wordsize |
boolean | true or false flag |
char null | a single ascii character |
Non-Primitive(Advanced)
Datatype | Use-Case |
---|---|
Strings | a list of characters |
Arrays | array of elements |
Interface | gui |