是的。想到一点需要说明一下,就是interface里面的方法都是static的,但是interface里声明的方法是属于实现了这个interface的类的,所以要用实现了interface的类的类名.方法名调用。