void vs Void

Zhong Yu zhong.j.yu at gmail.com
Fri Nov 16 07:37:27 PST 2012

If a method returns Void, the method body must "return null;"
somewhere. That is ugly in a lambda expression. Is it possible that
the compiler adds the "return null" implicitly?

    Void foo(){ System.out.println("foo"); }

Zhong Yu

More information about the lambda-dev mailing list