This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Elier Rguez wrote:
can anybody see why l1 compile well and don't l2?
Only certain conversions are allowed by the Java Language Specifications -- and an implicit widening cast from int to long, followed by an autobox from long to Long, isn't one of the allowed conversions.