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";
On this page of the site you can watch the video online Java Tutorial Part 4 | Java-10 | Variable Types with a duration of hours minute second in good quality, which was uploaded by the user Brain Jinnie 29 October 2018, share the link with friends and acquaintances, this video has already been watched 10 times on youtube and it was liked by 16 viewers. Enjoy your viewing!