belongs to collection: Core Java Multiple Choice Questions And Answers
What is the result?
public class MyThread implements Runnable { public void run() { System.out.println("running"); } public static void main(String args[]) { Thread t= new Thread(new MyThread()); t.run(); t.run(); t.start(); } }
Correct Answer:
The code executes and prints "runningrunningrunning"
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Correct Answer:
The code executes and prints "runningrunningrunning"
need an explanation for this answer? contact us directly to get an explanation for this answer