answersLogoWhite

0


Best Answer

No. In Java, you can store a limited range of values in an integer. Specifically, integers are 32-bit signed values which can store values in the range [-231, 231-1]. If you need to store more values, consider using a long integer [-263, 263-1] or the BigInteger class (which can store arbitrary-precision values).

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Can you store unlimited value in any integer type of variables?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

How do you turn a positive integer into a negative integer in programming?

Store the absolute value of the desired integer in a variable. Multiply the absolute value by two. Substract the new integer by the old integer.


What is the difference between functions and variables?

Variables define a certain value, such as an integer, string, boolean value, etc. Functions are defined to run a certain task, and may or may not return a value. You can have a function that calculates the sum of two numbers and returns the sum once calculated.


What data type would you use for the value 40?

Integers- Used to store Numbersfor exampleDim X As IntegerX = 10lblDisplay.Text = "The Integer value store in the variable is" & x


How do you store integer value in address 0x1234 using pointers?

int *ptr = (int *)0x1234; *ptr = value; Note: NEVER do this.


What is variable in c plus plus programming?

You declare a variable by first defining its data type and then its name followed by a semi-colon. Here is an example: int variable; The example above declares an uninitialized integer variable. You can initialize the variable by giving it a value such as "int variable = 1;". It is important to initialize your variables, because you can get errors when executing your program that the variable does not have a value or is uninitialized. Variables that are uninitialized have whatever garbage value happens to be when the program is executed. Here are all of the data types that a variable can be: *int - integer value *char - character value *bool - boolean value

Related questions

How do you turn a positive integer into a negative integer in programming?

Store the absolute value of the desired integer in a variable. Multiply the absolute value by two. Substract the new integer by the old integer.


Why do you use variables?

we use variable to store the value


Two methods in Visual Basic to store value?

dim value1 as integer dim value2[3] as integer


Write a line of code that asks the python user to input an integer greater than 0 and store this value in a variable and display its value?

integer = input("Please input an integer greater than 0: ") print(integer)


How do you write a java method to find the second largest integer in an array by using only one loop?

Use two variables to store the largest, and the second-largest integer. Update those in a loop, for every element in the array. Initial values might be the lowest permissible value for the int, long, double, or whatever value you use.


How do you get the absolute value of positive integer?

The absoluate value of a positive integer is the integer itself.The absoluate value of a positive integer is the integer itself.The absoluate value of a positive integer is the integer itself.The absoluate value of a positive integer is the integer itself.


Can you store the two variables with different values but having same name in session object?

Yes you can store it but the value which is assigned at the last will be accessed when the value is displayed.


What is the difference between functions and variables?

Variables define a certain value, such as an integer, string, boolean value, etc. Functions are defined to run a certain task, and may or may not return a value. You can have a function that calculates the sum of two numbers and returns the sum once calculated.


What data type would you use for the value 40?

Integers- Used to store Numbersfor exampleDim X As IntegerX = 10lblDisplay.Text = "The Integer value store in the variable is" & x


How do you store integer value in address 0x1234 using pointers?

int *ptr = (int *)0x1234; *ptr = value; Note: NEVER do this.


What is a absolute value of a negative integer?

The absolute value of an integer is the integer with a positive sign.


What is the absolute value of an integer of its numerical value of its numerical value?

The absolute value of an integer is the integer with no sign. The absolute value of +3 and -3 is 3.