Which of the following class declarations could run in a thread?
I public interface MyRunnable extends Runnable { . . . }
II public class MyRunnable extends Runnable { . . . }
III public class MyRunnable implements Runnable { . . . }
A) II
B) III
C) I and II
D) II and III
Correct Answer:
Verified
Q1: Which method(s) are part of the Thread
Q4: Which of the following does not create
Q5: When a thread is interrupted, the most
Q6: When a sleeping thread is interrupted, an
Q7: The Runnable interface includes which method(s)?
I public
Q8: Suppose run1 and run2 are objects of
Q9: Which constructor can be used to create
Q11: If you do not use the Runnable
Q12: When a sleeping thread is interrupted, a(n)
Q14: The _ method stops the current thread
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents