Java Tutorial Part 4 | Java-10 | Variable Types

Veröffentlicht am: 29 Oktober 2018
auf dem Kanal: Brain Jinnie
10
16

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";


Auf dieser Seite können Sie das Online-Video Java Tutorial Part 4 | Java-10 | Variable Types mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Brain Jinnie 29 Oktober 2018 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10 Mal angesehen und es wurde von 16 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!