Why does the following code not print ???
?
public class TestInterface {
interface I {};
I tester = new I() {{System.out.println("???");}};
static public void main(String[]args){
System.out.println("OGOGO");
}
}
Output:
OGOGO
- IDE: IntelliJ
- Jave: jdk-14.0.2