// Regression test that overrides a virtual method with a final one.classoverride1{publicintx1(){return3;}}publicclassoverrideextendsoverride1{publicfinalintx1(){return5;}publicfinalintx2(){return7;}publicstaticvoidmain(String[]args){overridez=newoverride();System.out.println(z.x1());System.out.println(z.x2());}}