you can copy and paste below code in main method on your machine.
// Minimum value can be -128 and maximum can be 127 (8 bit value)
Byte byteVar1 = 127;
// Minimum value can be -32768 and maximum can be 32767 (16 bit value)
Short shortVar1 = 32767;
// minimum value can be -2 to the power 31 and a maximum value of 2 to the power 31 - 1
Integer intVar1 = 1234567890;
// minimum value can be -2 to the power 63 and a maximum value of 2 to the power 63-1
Long langVar1 = 1234567890l;
// Float data type is a single-precision 32-bit IEEE 754 floating point
float floatVar1 = 1234.4567f;
// Double data type is a double-precision 64-bit IEEE 754 floating point
Double doubleVar1 = 1234.5678;
// Boolean data type has only two possible values: true and false
Boolean booleanVar1 = true;
// Char data type is a single 16-bit Unicode character
Character charVar1 = 'a';
// collection of alphabet
String stringVar1 = "Abby";
En esta página del sitio puede ver el video en línea Java Tutorial Part 4 | Java-10 | Variable Types de Duración hora minuto segunda en buena calidad , que subió el usuario Brain Jinnie 29 octubre 2018, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 10 veces y le gustó 16 a los espectadores. Disfruta viendo!