Output : public class Test implements Runnable{public void run(){System.out.print("go");}public static void main(String arg[]){Thread t = new Thread(new Test()); t.run(); t.run(); t.start();}}

Question:
Output : public class Test implements Runnable{public void run(){System.out.print("go");}public static void main(String arg[]){Thread t = new Thread(new Test()); t.run(); t.run(); t.start();}}

1.An exception is thrown at runtime.

2.

Posted Date:-2021-10-25 05:37:20


More MCQS Questions and answers

Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!