Java Reference

Java Reference Home | Smart Soft Home

Literals

Intergal Literals

int i = 10;
long l = 100L;

Floating Point Literals

float f = 2.5F;
double d = 333.444D;

Character Literal

char c = 'A';

boolean literal

boolean b = true;

String literal

String s = "Hello";

Null Pointer

Object o = null;