OOPS
August 25, 2024OOPS
August 25, 2024OOPS
Question 139
|
Which two are valid constructors for Thread?
1. Thread(Runnable r, String name)
2. Thread()
3. Thread(int priority)
4.Thread(Runnable r, ThreadGroup g)
5.Thread(Runnable r, int priority)
1. Thread(Runnable r, String name)
2. Thread()
3. Thread(int priority)
4.Thread(Runnable r, ThreadGroup g)
5.Thread(Runnable r, int priority)
1 and 3
|
|
2 and 4
|
|
1 and 2
|
|
2 and 5
|
Question 139 Explanation:
(1) and (2) are both valid constructors for Thread.
(3), (4), and (5) are not legal Thread constructors
(3), (4), and (5) are not legal Thread constructors
Correct Answer: C
Question 139 Explanation:
(1) and (2) are both valid constructors for Thread.
(3), (4), and (5) are not legal Thread constructors
(3), (4), and (5) are not legal Thread constructors
Subscribe
Login
0 Comments