Learn Programming
Resources specific to my own learning journey.
Learn Programming
Seems a bit silly that you can declare the variable as a long and the compiler happily ignores that when first evaluating the literal.
All primitive types in Java need wrappers to be put into collections. Only reason I haven’t noticed any other than ints is that ints and Strings are the only ones I tend to try.