Online Java Compiler By
JavaTpoint.com
class TestCallRun1 extends Thread{ public void run(){ System.out.println("running..."); } public static void main(String args[]){ TestCallRun1 t1=new TestCallRun1(); t1.run();//fine, but does not start a separate call stack } }
Output