BigInteger supports integers of arbitrary precision, making it suitable for working with very large integers.
Source Code
BigInteger a = new BigInteger("123456789");
BigInteger b = new BigInteger("987654321");
BigInteger result = a.multiply(b);
System.out.println(result);