Software Engineer Sr Interview Questions

71,535 software engineer sr interview questions shared by candidates

1) I have class hierarchy and should create array of different instances of this hierarchy. They asked me to write a function which iterates this array and executes different methods according to the instance class. I suggested that downcasting is a bad idea and that it can violate Liskov substitution rule of the SOLID principles, and this problem should be solved using collections and generics, but they did not accept this answer 2) Create Queue N size using only N size array. 3) some Java concurrency related questions: synchronized volatile, atomic, etc....
avatar

Senior Software Engineer

Interviewed at Taboola

4.2
Dec 6, 2015

1) I have class hierarchy and should create array of different instances of this hierarchy. They asked me to write a function which iterates this array and executes different methods according to the instance class. I suggested that downcasting is a bad idea and that it can violate Liskov substitution rule of the SOLID principles, and this problem should be solved using collections and generics, but they did not accept this answer 2) Create Queue N size using only N size array. 3) some Java concurrency related questions: synchronized volatile, atomic, etc....

Viewing 131 - 140 interview questions

Glassdoor has 71,535 interview questions and reports from Software engineer sr interviews. Prepare for your interview. Get hired. Love your job.