For the longest time i had assumed that integer literals defaulted to Long and floting point literals to Double. Now i find out that actually integer literals default to int. Am i going insane...where does the default to Long type come in....i've been a java programmer for a long long time.
posted 8 years ago
Never. There is no default to long. If you want a long literal, put "L" at the end of the number.