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";
In questa pagina del sito puoi guardare il video online Java Tutorial Part 4 | Java-10 | Variable Types della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Brain Jinnie 29 ottobre 2018, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 10 volte e gli è piaciuto 16 spettatori. Buona visione!