6 .
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.
A. start()
B. run()
C. init()
D.go()
View AnswerAns: run()
7 .
Which of these method waits for the thread to treminate?
A.sleep()
B. isAlive()
C. join()
D. stop()
View AnswerAns: join()
8 .
In java, by default every thread is given a___
A.MIN_PRIORITY(0)
B. NORM_PRIORITY(5)
C. MAX_PRIORITY(10)
D. HIGH_PRIORITY(7)
View AnswerAns: NORM_PRIORITY(5)
9 .
Which of these method wakes up all the threads?
A.wakeAll()
B. notify()
C. start()
D.notifyAll()
View AnswerAns: notifyAll()
10 .
When a class extends the Thread class ,it should override ............ method of Thread class to start that thread.
A.start()
B. run()
C. init()
D..go()
View AnswerAns: run()