Java Senior Interview Questions

6,026 java senior interview questions shared by candidates

1. 100 doors task (first all doors closed, then open every door, then switch every 2nd door, then switch every 3rd door etc till 100th door. Find if nth door is opened or closed). 2. Java test questions (i.g. is this piece of code compilable, write the compareTo method to sort by last name, then by first name). 3. 27 horses, 3 tracks. Find the fastest horse and the second one by making minimum competitions between horses. Each horse always run with the same speed.
avatar

Senior Java Developer

Interviewed at Interactive Brokers

3.4
Apr 19, 2014

1. 100 doors task (first all doors closed, then open every door, then switch every 2nd door, then switch every 3rd door etc till 100th door. Find if nth door is opened or closed). 2. Java test questions (i.g. is this piece of code compilable, write the compareTo method to sort by last name, then by first name). 3. 27 horses, 3 tracks. Find the fastest horse and the second one by making minimum competitions between horses. Each horse always run with the same speed.

Viewing 1771 - 1780 interview questions

Glassdoor has 6,026 interview questions and reports from Java senior interviews. Prepare for your interview. Get hired. Love your job.