What will be the output of the following code?
public interface Greetable {
void greet();
}
public class Test {
public static void main(String[] args) {
Greetable g = new Greetable() {
@Override
public void greet() {
System.out.println("Hello, World!");
}
};
g.greet();
}
}