Sr Java Developer Interview Questions

5,537 sr java developer interview questions shared by candidates

1 - There are 3 classes A, B, C. B extends A, C extends B. There is a mixed collection, containing objects from the 3 classes. Write code/pseudo code for removing only the instances of class B. 2 - try-catch-finally question. 3 - interface vs abstract class 4 - to inspect a code with Strings and StringBuilder objects 5 - how many instances of a servlet are there in memory? Are its member vars thread-safe? Pattern? 6 - diff cookies vs URL rewriting for session management 7 - something about jsps and their scope (do not remember well) 8 - a piece of c*appy code to be refactored.
avatar

Senior Java Developer

Interviewed at Accenture

3.7
Jun 2, 2020

1 - There are 3 classes A, B, C. B extends A, C extends B. There is a mixed collection, containing objects from the 3 classes. Write code/pseudo code for removing only the instances of class B. 2 - try-catch-finally question. 3 - interface vs abstract class 4 - to inspect a code with Strings and StringBuilder objects 5 - how many instances of a servlet are there in memory? Are its member vars thread-safe? Pattern? 6 - diff cookies vs URL rewriting for session management 7 - something about jsps and their scope (do not remember well) 8 - a piece of c*appy code to be refactored.

Viewing 1621 - 1630 interview questions

See Interview Questions for Similar Jobs

Glassdoor has 5,537 interview questions and reports from Sr java developer interviews. Prepare for your interview. Get hired. Love your job.