Browse topics
Java Basics
Data Type Programs
byte, short, int, long, float, double, char and boolean examples.
data type programsInt Datatype Example in JavaInt Datatype in Java: a complete example program with source code and sample output, explained step by step.data type programsCharacter Datatype Example in JavaThe char data type is a single 16-bit Unicode character. A Java example with source code and sample output.data type programsBoolean Datatype Example in JavaThe boolean data type has only two possible values: true and false. A Java example with source code and sample output.data type programsByte Datatype Example in JavaThe byte data type is an 8-bit signed two's complement integer. A Java example with source code and sample output.data type programsDouble Datatype Example in JavaDouble is a keyword which designates the 64 bit float primitive type. A Java example with source code and sample output.data type programsFloat Datatype Example in JavaFloat is a keyword which designates the 32 bit float primitive type. A Java example with source code and sample output.data type programsLong Datatype Example in JavaLong Datatype explained in Java, with a complete example program, its sample output, and a clear code walkthrough.data type programsShort Datatype Example in JavaShort data type is a 16-bit signed two's complement integer. A Java example with source code and sample output.