Using default implementation in class is right?

bitter_fox bitterfoxc at gmail.com
Thu Dec 15 05:33:00 PST 2011


Using default implementation in class is right?

I can compile this program.
(Revision of javac is 1244)

public class Main
{
    public static void main(String[] args) default
    {
        new Main().invoke();
    }

    public void invoke() default
    {
        System.out.println("Hello World");
    }
}

Is this right?
I have thought this is wrong...

Thanks.
bitter_fox


More information about the lambda-dev mailing list