Java initialize BigInteger value In this Java core tutorial we learn how to initialize a BigInteger object from a String or a long value using BigInteger constructor or java.math.BigInteger.valueOf() method.