Is the \'floating point literal\' and the \'floating literal\' the same thing in Java?
Also, is there anything called \'double literal\' in Java?
Java has both float literals marked with a f suffix (for example, 2.5f) and double literals, which don't require a suffix (for example 2.5).
The difference between the two can be demonstrated when you attempt to assign such literals to variables :
double dl = 2.5; // passes compilation
float fl1 = 2.5; // error - "Type mismatch: cannot convert from double to float"
float fl2 = 2.5f; // passes compilation
Both can be considered as floating point literals, since both double and float are floating point types.