Java float is 32 bit single precision type and used when fractional precision calculation is required.
publicclass Main {
publicstaticvoid main(String[] args) {
float f = 12.3f;
System.out.println("Value of float variable f is :" + f);
}
}
//Value of float variable f is :12.3