Accenture Interview Question

thread handling in java