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
2.11.Float
2.11.1.
Java float is 32 bit single precision type and used when fractional precision calculation is required.