What is the name of the method used to start a thread execution?
Which two are valid constructors for Thread?
Thread(Runnable r, String name)
Thread()
Thread(int priority)
Thread(Runnable r, ThreadGroup g)
Thread(Runnable r, int priority)
Which three are methods of the Object class?
notify();
notifyAll();
isInterrupted();
synchronized();
interrupt();
wait(long msecs);
sleep(long msecs);
yield();
Which of the following line of code is suitable to start a thread ?XRunnable classXimplementsRunnable{publicstaticvoid main(String args[]){/* Missing code? */}publicvoid run() {}}
Which cannot directly cause a thread to stop executing?
Which two of the following methods are defined in class Thread?
start()
wait()
notify()
run()
terminate()
Which three guarantee that a thread will leave the running state?
yield()
wait()
notify()
notifyAll()
sleep(1000)
aLiveThread.join()
Thread.killThread()
Which of the following will directly stop the execution of a Thread?
Which method must be defined by a class implementing the java.lang.Runnable interface?