Q. Which method in thread class causes the currently executing thread object to temporarily pause and allow other threads to execute?

  • (A) public boolean isAlive()
  • (B) public int getId()
  • (C) public void yield()
  • (D) public boolean isDaemon()
πŸ’¬ Discuss
βœ… Correct Answer: (C) public void yield()

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
337
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Vishal Gupta
Publisher
πŸ“ˆ
96%
Success Rate