class Test { Test() { foo(this::fs); foo((s) -> fs(s)); } void foo(I iss) {} String fs(String s) throws Exception { throw new Exception(); } } interface I { R f(T t); }