Thread moved from Java theory and questions