Java/English(2)
-
Java variable_2_Primitive Data type
Data type In Java, there are different method of declaring variables for example, Integer Type Real Numbers Character Logic For each type, there are different mothods. For Interger type, byte bit range byte 1 8 -128~127 short 2 16 -32,768~32,767 int 4 32 -2,147,483,648~2,147,483,647 long 8 64 -2^63~2^63-1 For Real Numbers, byte bit range float 4 32 1.4x10^45~3.4x10^38 double 8 64 4.9x10^-324~1.8..
2020.12.30 -
Java variable_basic rule
Java has containers for storing data values which called containers. Each Variable can only contain one data type. For example, this typical type of variable shows the basic information: int num = 1; int: specific data type num: name of the variable =: Operator (which it would be shown later) 1: initial value Declaring variables does not directly mean equal as the symbol "=" shows, declaring var..
2020.12.28