Services
Discover
Homeschooling
Ask a Question
Log in
Sign up
Filters
Done
Question type:
Essay
Multiple Choice
Short Answer
True False
Matching
Topic
Computing
Study Set
Big Java Binder Early Objects
Quiz 21: Multithreading
Path 4
Access For Free
Share
All types
Filters
Study Flashcards
Practice Exam
Learn
Question 1
Multiple Choice
Which method(s) are part of the Thread class? I public void run(Runnable runnable) II public void start(Runnable runnable) III public void start()
Question 2
Multiple Choice
When a sleeping thread is interrupted, an InterruptedException is generated. Where do you catch that exception?
Question 3
Multiple Choice
Which constructor can be used to create a new thread associated with a Runnable object?
Question 4
Multiple Choice
Which of the following does not create an object that can run in a thread, assuming the following MyRunnable class declaration? public class MyRunnable implements Runnable { . . . } I Runnable runnable = new Runnable() ; II Runnable runnable = new MyRunnable() ; III MyRunnable runnable = new MyRunnable() ;
Question 5
Multiple Choice
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 { . . . }