JAVA Threads
Which keyword when applied on a method indicates that only one thread should execute the method at a time.

static
native
final
synchronized
volatile

ANSWER DOWNLOAD EXAMIANS APP

JAVA Threads
What will happen when you attempt to compile and run the following code?1. public class Test extends Thread{2. public static void main(String argv[]){3. Test t = new Test();4. t.run();5. t.start();6. }7. public void run(){8. System.out.println("run-test");9. }10. }

Compilation fails due to an error on line 4
run-test
None of these
Compilation fails due to an error on line 7
run-test run-test

ANSWER DOWNLOAD EXAMIANS APP