when-to-use-long-vs-Long-in-java

    When to use long vs Long in Java

    https://stackoverflow.com/questions/21034955/when-to-use-long-vs-long-in-java The biggest difference I see between long and Long in this context is that Long may be null. If there's a possibility you might have missing values, the Long object will be helpful as null can indicate missing values. If you're using primitives, you'll have to use some special value to indicate missing, which is probab..