应打印什么?为什么编译器不发出任何警告?这样的函数返回什么?
interface InterfaceCalculation {
Object calculation(int a, int b);
}
public class HelloWorld{
public static void main(String []args){
System.out.println("Hello World");
InterfaceCalculation add = (a, b) -> {
while(true)
a = a +b;
};
System.out.println(add.calculation(1,2));
}
}