在java8中,接口的方法也可以实现了。publicinterfaceTestInterface{ publicvoidtest(){ System.out.println("youfengxin.com"); } }很明显这段代码会报错。...