Is it possible to implement autoboxing for your own classes?
To illustrate my example, this is what I might want to write:
Foo foo = \"lolcat\";
No, java does not support operator overloading (http://en.wikipedia.org/wiki/Operator_overloading).
Autoboxing is a compiler feature and not available for your own classes.
The reasoning is explained here: http://www.cafeaulait.org/javafaq.html#xtocid1902938