Fifth Third interview question

What measures would you take to avoid Java threading issues in a multi-threaded environment.