Java Programmer Interview Questions

26,887 java programmer interview questions shared by candidates

Puzzle - A man has to take a wolf, a goat, and some cabbage across a river. His rowboat has enough room for the man plus either the wolf or the goat or the cabbage. If he takes the cabbage with him, the wolf will eat the goat. If he takes the wolf, the goat will eat the cabbage. Only when the man is present are the goat and the cabbage safe from their enemies. All the same, the man carries wolf, goat, and cabbage across the river. How?
avatar

Java Developer

Interviewed at Concerto Software

3.8
Feb 9, 2020

Puzzle - A man has to take a wolf, a goat, and some cabbage across a river. His rowboat has enough room for the man plus either the wolf or the goat or the cabbage. If he takes the cabbage with him, the wolf will eat the goat. If he takes the wolf, the goat will eat the cabbage. Only when the man is present are the goat and the cabbage safe from their enemies. All the same, the man carries wolf, goat, and cabbage across the river. How?

Viewing 581 - 590 interview questions

Glassdoor has 26,887 interview questions and reports from Java programmer interviews. Prepare for your interview. Get hired. Love your job.