Tips for Java beginners

June 14, 2013

Comments and style

A small list of data types

Java syntax Meaning
char A character of the alphabet, or symbols and numbers
String A string of characters forming a word, sentence or something longer
int An integer (number with no fractional part)
long A longer (64 bits of space) integer
float A floating-point number (32 bits of space)
double A double-precision float (64 bits of space)