public class TestDriver { public void method() { System.out.println("Executed method"); } public static void main(String args[]) { TestDriver td = new TestDriver(); td.method(); } }