×
Login Or SignUp
Privacy Policy
Terms Of Service
freetests4u.com
Online Knowledge Sharing Platform
Login/SignUp
freetests4u.com
Blogs
Mock Tests
Videos
Jobs
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 Answer
Ans: run()
7 .
Which of these method waits for the thread to treminate?
A.
sleep()
B.
isAlive()
C.
join()
D.
stop()
View Answer
Ans: 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 Answer
Ans: NORM_PRIORITY(5)
9 .
Which of these method wakes up all the threads?
A.
wakeAll()
B.
notify()
C.
start()
D.
notifyAll()
View Answer
Ans: 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 Answer
Ans: run()
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17