Lambda Expression + Requirements to Java Classes and Interfaces

Felix Schmidt schmidtfx at
Sun Dec 5 03:07:15 PST 2010


I want to explore the benefits of lambda expressions for our open source 

Here are some questions:
1. What are the basic requirements to a java object?

If I have such a abstract class

public abstract class AbstractClass {
   public void testMethod() {
      // do something here
   public abstract void abstractMethod();

Is it possible to do something like:
AbstractClass class = #{System.out.println("abstract class")};

Or if this syntax is not valid, how could I modify either the 
AbstractClass or the instantiation?

Thank you

More information about the lambda-dev mailing list