int suffix represents various formats of int type in Java: No suffix: Decimal integer L: Long integer constant l: Same as above 0: Octal integer x: Hexadecimal integer f: Single-precision floating point number d : Double precision floating point number
int suffix
In Java, int
type follows The following suffixes can be used:
Basic suffix
100
100L
100l
Base suffix
0100
0xFF
Floating point suffix
100.0f
100.0d
100.0F
100.0D
##Other
can be used to represent variable length parameter methods. For example:
public void myMethod(int... numbers)
The above is the detailed content of What can be followed by int in java?. For more information, please follow other related articles on the PHP Chinese website!