answersLogoWhite

0

In reality, it's not. 2,147,483,647 is the largest number that an int type can hold. This is because Java uses a 32-bit signed integer value for ints. Since it's signed, one bit needs to hold the sign value, leaving us 31 bits for storage. 231 = 2,147,483,648, which is the total number of values which can be held in 31 bits. Since we also need to store a zero, our maximum is 2,147,483,647. The total range of data which can be held in an int is [-2,147,483,648 : 2,147,483,647].

But, as was said above, this is not the biggest number Java can handle. It also has support for 64-bit long integer types. This type can hold values in the range [-9,223,372,036,854,775,808 : 9,223,372,036,854,775,807].

And finally we have the BigInteger class, which can hold infinitely large numbers, limited only by the physical capacity of your storage space (RAM).

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

What is the biggest island population wise?

Indonesia Java Island


Is it possible to run java program without JVM?

No. Java programs run in the Java Virtual Machine (JVM) - without it your computer won't know how to handle Java bytecode.


How exception subclass is created in java?

To handle the exceptions in large programs


What are real constants in java?

"real" numbers, in any programming language, are actually approximations of what is called a "real number" in math. Basically, a number that can handle decimals - but unlike the actual real numbers, of limited precision. In Java, the "real" data types are float, and double. double has greater precision. A "constant" in Java is similar to a variable, but its value can't be changed after it has been assigned a value.


What does it mean if you have java and you can't play minecraft?

You may need to download the newest version of Java for minecraft to work. Or maybe your computer can not handle it.


What are the 5 biggest islands in Indonesia?

Papua, Kalimantan, Sumatra, Java, and Sulawesi.


What is the syntax for representing a floating-point number in Java using a float literal?

In Java, a floating-point number can be represented using a float literal by appending an "f" or "F" at the end of the number. For example, 3.14f represents a floating-point number in Java.


You want to design website and handle it.whether you should learn core java or advanced java?

You should learn HTML, JavaScript and other web programming languages. Leave learning Java until you have a good reason to learn it.


Where were the allies biggest defeats buring 1942?

The Battle of the Java Sea; the Battle of Savo Island.


How do you find a system number in a JAVA program?

If by system number you mean the version number of the Java language on the client computer, you can useSystem.getProperty("java.version"); .Or, if you want the Java virtual machine version number you can use System.getProperty("java.vm.version"); .Finally, if you want the version number of the operating system, you can use System.getProperty("os.version"); .


How do you find out whether Java is installed on Linux?

Enter "java -version" into a terminal. If Java is installed, it will tell you the version number. If it is not installed, it will say "command not found."


Where can one find a Java development kit?

Java Development Kits are best found on the Java website. There are a number of programmes that can be downloaded. It is also possible to get Java Development Kit downloads from the Oracle website.

Trending Questions
What is potential of solar energy in Pakistan? When highway engineers build a road in a mountainous area's they insert drainage pipes into the slopes alongside the road why? What is the psi of a 2 inch by 60 inch pipe and a 1 inch by 60 inch pipe both vertical? The process of cell differentiation is not well understood but involves the turning off or on of genetic information in the cell? What is the best programming language to start with if you want to learn programming for the first time also where is a tutorial for it or a book you would recommend that teaches it? What are three things that people who live in older houses can do to make their houses more energy efficient? When 5 coulombs of charge per second pass a point in an electric circuit the electric current in that part of the circuit is? What does ATM mean in text language? What are pictorial figures that represent programs? How do you install c language in win 7? If I was a student or indie developer and didn't really know how to get started making a game for the 3DS how do I get started? What was a J C Higgins 103.18 model rifle used for? Why is XML better for e-commerce than HTML? What are the methods of synchronization? How long is birth after induction? What is a rebar carry bar? Simple way to describe force? How do you show oracle data in vb text box? What are the four technologies of training equipment? If the voltage stays same and the resistance is 14 of its originalwhat will happen to the current?