From https://docs.oracle.com/javase/8/docs/api/java/math/BigInteger.html#valueOf-long-:
This "static factory method" is provided in preference to a (long) constructor because it allows for reuse of frequently used BigIntegers.