Jr Java Developer Interview Questions

3,800 jr java developer interview questions shared by candidates

There are three boxes, one contains only apples, one contains only oranges, and one contains both apples and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of the box it labels. Opening just one box, and without looking in the box, you take out one piece of fruit. By looking at the fruit, how can you immediately label all of the boxes correctly?
avatar

Junior Java Developer

Interviewed at Playtech

3.5
Mar 19, 2025

There are three boxes, one contains only apples, one contains only oranges, and one contains both apples and oranges. The boxes have been incorrectly labeled such that no label identifies the actual contents of the box it labels. Opening just one box, and without looking in the box, you take out one piece of fruit. By looking at the fruit, how can you immediately label all of the boxes correctly?

Viewing 2811 - 2820 interview questions

Glassdoor has 3,800 interview questions and reports from Jr java developer interviews. Prepare for your interview. Get hired. Love your job.