I can implicitly conver int to long and long to Long. Why is it not possible to implicitly convert int to Long? Why can\'t Java do the implicit conversion on the last line o
Boxing only works with primitives. That's why.
Try this: Long.valueOf(int);
Long.valueOf(int);
Documentation