Any significant differences in Java number "casting"
Any significant differences in Java number "casting"
Is there any significant difference in casting a literal number vs. using
a suffix on the literal number?
To illustrate...
doSomethingWithLong(2L); //vs...
doSomethingWithLong((long) 2);
No comments:
Post a Comment