JAVA Threads
What is the output for the below code ?public class Test extends Thread{ public static void main(String argv[]){ Test t = new Test(); t.run(); } public void start(){ for(int i = 0; i < 10; i++){ System.out.println("Value of i = " + i); } }}

None of these
Clean compile but no output at runtime
A run time error indicating that no run method is defined for the Thread class
A compile time error indicating that no run method is defined for the Thread class
Clean compile and at run time the values 0 to 9 are printed out

ANSWER DOWNLOAD EXAMIANS APP

JAVA Threads
What notifyAll() method do?

Wakes up all threads that are waiting on this object's monitor
Wakes up one threads that are waiting on this object's monitor
None of these
Wakes up all threads that are not waiting on this object's monitor

ANSWER DOWNLOAD EXAMIANS APP

JAVA Threads
Analyze the following code:public class Test implements Runnable{ public static void main(String[] args){ Test t = new Test(); t.start(); } public void run() { }}

The program compiles, but it does not run because the run() method is not implemented.
The program compiles and runs fine.
The program compiles, but it does not run because the start() method is not defined.
The program does not compile because the start() method is not defined in the Test class.

ANSWER DOWNLOAD EXAMIANS APP