interface SAM { String <caret>foo(String s); } class JTest { static void samTest(SAM sam) { } }