Quantcast
Channel: Long vs BigInteger - Stack Overflow
Viewing all articles
Browse latest Browse all 2

Long vs BigInteger

$
0
0

I understand that both java.lang.Long and java.math.BigIntegercan hold very large natural numbers.

I also know Long's max value, but what is the max value for BigInteger?

And aside from capacity, would BigInteger ever perform better when working with generally large integers that still fall in Long's range?

Question

Is the only consideration: is my value too large for Long?


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images