Discussion
Consider how long join(0) waits. Which statement is correct?
Answer: B
The javadoc defines join() as behaving exactly like join(0), and states that a timeout of 0 means to wait forever. Treating zero as no wait is the natural reading and the wrong one, which is what makes it worth asking.
No comment is present. Be the first to comment.
Loading…
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development