same method signature in interface and class <pre><code>interface TestInterface { void work(); } class TestClass { public void work(){ System.out.println("Work in CLASS"); } } public class Driver extends TestClass implements TestInterface { public static void main(String[] args) { new TestClass().work(); } } </code></pre> <p>Can any one explain to me, why just because the same work method signature exists in TestClass this class compiles fine?</p>