Q. Which of the following statement is false?

  • (A) The sleep() method should be enclosed in try ... catch block.
  • (B) The yield() method should be enclosed in try ... catch block.
  • (C) A thread can be temporarily suspended from running by using the wait() method.
  • (D) A suspended thread using suspend() method can be revived using the resume() method.
πŸ’¬ Discuss
βœ… Correct Answer: (B) The yield() method should be enclosed in try ... catch block.

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
119
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate