Double cannot represent 0.10 exactly, and long overflows past ~9.2 quintillion. Java's core math and utility classes—Math, BigDecimal, BigInteger, ThreadLocalRandom, SecureRandom and Objects—fill those gaps reliably without external libraries.
More lessons in Complete Core Java