//第一种:
interface D{void showContext();}
new D(){
@Override
public void showContext(){
System.out.print("Hello");
}
}.showContext();
//第二种:
interface D{void showContext();}
D d = new D(){
@Override
public void showContext(){
System.out.print("Hello");
}
};
d.showContext();