in Education by
Which of these method of Thread class is used to Suspend a thread for a period of time? (a) sleep() (b) terminate() (c) suspend() (d) stop() This question was posed to me in an interview. My question is from Thread class in portion Multithreading of Java Select the correct answer from above options

1 Answer

0 votes
by
 
Best answer
The correct choice is (a) sleep() The best I can explain: None.

Related questions

0 votes
    Which of these method of Thread class is used to find out the priority given to a thread? (a) get( ... division Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method is used to explicitly set the priority of a thread? (a) set() (b) make() ( ... in division Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method is used to begin the execution of a thread? (a) run() (b) start() (c) ... in chapter Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method is used to tell the calling thread to give up a monitor and go to sleep until ... division Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method of Thread class is used to Suspend a thread for a period of time? (a) ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    Which of these method waits for the thread to terminate? (a) sleep() (b) isAlive() (c) join() (d ... in division Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these method wakes up the first thread that called wait()? (a) wake() (b) notify() (c) ... in section Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of this method can be used to make the main thread to be executed last among all the threads? ... portion Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of this method is used to find out that a thread is still running or not? (a) run() (b) ... in chapter Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of these methods of a Thread class is used to suspend a thread for a period of time? (a) ... programming questions and answers pdf, java interview questions for beginners...
asked Oct 25, 2021 in Education by JackTerrance
0 votes
    Which of these method is used to implement Runnable interface? (a) stop() (b) run() (c) runThread( ... division Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following is a correct constructor for thread? (a) Thread(Runnable a, String str) (b) ... division Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Deadlock is a situation when thread is waiting for other thread to release acquired object. (a) True (b) ... Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following stops execution of a thread? (a) Calling SetPriority() method on a Thread object (b ... Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
0 votes
    Which of the following will ensure the thread will be in running state? (a) yield() (b) notify() (c ... section Multithreading of Java Select the correct answer from above options...
asked Mar 1, 2022 in Education by JackTerrance
...