Multi Threading
© examsiri.com
Question : 32 of 44
Marks:
+1,
-0
Given the following
What is the result of this code?
1. class MyThread extends Thread {
2.   public static void main(String [] args) {
3.    MyThread t = new MyThread();
4.    Thread x = new Thread(t);
5.    x.start();
6.   }
7.   public void run() {
8.    for(int i=0;i < 3;++i) {
9.     System.out.print(i + "..");
10.   } } }What is the result of this code?
Go to Question: