Explain the values of int data type.

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter2: Using Data
Section: Chapter Questions
Problem 16RQ
icon
Related questions
Question

Explain the values of int data type.

Expert Solution
Step 1

Integer data type:

  • The Integer data type is used to store numeric value for variables.
  • The Integer data type is denoted by “int” keyword.
  • The int data type has a storage size of 2 or 4 or 8 bytes. It differs depending on the processor in the CPU used by the user.
steps

Step by step

Solved in 2 steps

Blurred answer