Java Tutorial Part 4 | Java-10 | Variable Types

Опубликовано: 29 Октябрь 2018
на канале: 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";


На этой странице сайта вы можете посмотреть видео онлайн Java Tutorial Part 4 | Java-10 | Variable Types длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Brain Jinnie 29 Октябрь 2018, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 10 раз и оно понравилось 16 зрителям. Приятного просмотра!