Hi ,
first let me congratulate u.great score!!!
I have some doubts in threads.hope u can clear me.
1.what might cause the current
thread to stop executing?
A.An InterruptedException is thrown
B.The thread executes a wait() call
C.The thread constructs a new thread
D.A thread of higher priority becomes ready
E.The thread executes a waitforID()call on a mediaTracker.
my ans:bde
2.Which of the followidng statements are true.
a.All the threads created in a class come to an end at the same time.
b.You can stop a thread indefinitely if u wish to.
c.You can start a thread only by extending the Thread class d.multiple threads accessing a method will lead to producing junk.
e.JVM exits after the main() thread is exited even if there might be some threads running
Thanks in advance,
geetha