JavaSyntax
Primitive Types
Code example
byte short int long float double boolean charJava's built-in primitive types.
In Java, primitive types: java's built-in primitive types — byte short int long float double boolean char
byte short int long float double boolean charbyte short int long float double boolean charJava's built-in primitive types.
Use byte short int long float double boolean char.
Use this pattern: byte short int long float double boolean char
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.