datatype1 What is the Data Type and Integer? 1. Data Type = Primitive type + Reference type// going to focus on the primitive type for now2. Primitive type = Integer + Float + Character + Boolean// going to focus on the integer for now3. Integer = byte + short + int + long3-1. byte = 1 byte, (-128) ~ 127// 1 byte = 8 bits3-2. short = 2 bytes, (-32768) ~ 327673-3. int = 4 bytes, (-2147483648) ~ 2147483647// around +/- 2.1 billions3-4. long .. 2025. 3. 25. 이전 1 다음