BigInteger:
The BigInteger class allocates as much memory as is needed to store all the bits of data that it requests, and also provides analogues of operations with all the primitive Java operators and all the corresponding methods from java.lang.Math.
Declare it as
BigInteger bi1 = new BigInteger("12345678900123");
kirti source share