If you do not use the Runnable interface, then what is necessary to create a new thread?
I Implement the Threadable interface
II Extend the Thread class and add a run() method to it
III Add a run method to any class
A) I
B) II
C) III
D) II and III
Correct Answer:
Verified
Q4: Which exception must be caught or declared
Q5: When a thread is interrupted, the most
Q7: The Runnable interface includes which method(s)?
I public
Q8: Suppose run1 and run2 are objects of
Q8: Given a two-CPU machine and four threads,
Q12: When a sleeping thread is interrupted, a(n)
Q13: For threads of equal priority, which is
Q14: The _ method stops the current thread
Q15: To start a thread, you should first
Q16: The Runnable interface has a single method
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