1// U = Unsigned // L = Long //
2NAME | MIN | MAX
3--------------------------------------------------------
4bool | 0 | 1
5--------------------------------------------------------
6char | -127 | 127
7U char | 0 | 255
8--------------------------------------------------------
9short | -32768 | 32767
10U short | 0 | 65535
11--------------------------------------------------------
12(L) int | -2147483648 | 2147483647
13U(L) int | 0 | 4294967295
14--------------------------------------------------------
15LL int | -9223372036854775808 | 9223372036854775807
16ULL int | 0 | 18446744073709551615
17--------------------------------------------------------
18float | 1.2E-38 | 3.4E+38
19double | 2.3E-308 | 1.7E+308
20L double | 3.4E-4932 | 1.1E+4932
21--------------------------------------------------------
22wchar_t | 1 wide character (2-4 bytes)
23--------------------------------------------------------
1• number(num) - whole numbers up to num digits
2• number(num,num2) - num whole numbers up to num2 decimals
3• char(num) - fixed length character/string
4• varchar2(num) - used for varying length data
5• date - full date
6• currency - used for prices
1Primitive types are the most basic data types available within the Java language. There are 8: boolean , byte , char , short , int , long , float and double . These types serve as the building blocks of data manipulation in Java. Such types serve only one purpose — containing pure, simple values of a kind.
1Text Type: str
2Numeric Types: int, float, complex
3Sequence Types: list, tuple, range
4Mapping Type: dict
5Set Types: set, frozenset
6Boolean Type: bool
7Binary Types: bytes, bytearray, memoryview
8
1class Output {
2public static void main(String args[])
3int a = 1;
4int b = 2;
5int C;
6int d;
7C = ++b;
8d = a++;
9C++;
10b++;
11++a;
12System.out.println(a + " " + b + " " + c);
13}
14}
15Pick ONE option
16324
17323
18234
19
1let length = 16; //
2let lastName = "Johnson"; //
3const x = {
4 firstName: "John",
5 lastName: "Doe"
6}; //
7