Data Type Programs
byte, short, int, long, float, double, char and boolean examples.
Int Datatype Example in Java
Int Datatype in Java: a complete example program with source code and sample output, explained step by step.
Character Datatype Example in Java
The char data type is a single 16-bit Unicode character. A Java example with source code and sample output.
Boolean Datatype Example in Java
The boolean data type has only two possible values: true and false. A Java example with source code and sample output.
Byte Datatype Example in Java
The byte data type is an 8-bit signed two's complement integer. A Java example with source code and sample output.
Double Datatype Example in Java
Double is a keyword which designates the 64 bit float primitive type. A Java example with source code and sample output.
Float Datatype Example in Java
Float is a keyword which designates the 32 bit float primitive type. A Java example with source code and sample output.
Long Datatype Example in Java
Long Datatype explained in Java, with a complete example program, its sample output, and a clear code walkthrough.
Short Datatype Example in Java
Short data type is a 16-bit signed two's complement integer. A Java example with source code and sample output.