Java Senior Interview Questions

6,015 java senior interview questions shared by candidates

2nd Round: Q1. Find the count of employees in the same department using Stream API. Q2. Longest substring of distinct characters input1: abcabcbb output1: abc input2: abcabcd output2: abcd input3: abcadbcd output2: bcad Q3. What is ThreadPool? Q4. How to enable security for APIs in spring boot? Q5. How to pass files in Rest API of a spring boot application? Q6. How to give customized HttpStatus code in spring boot Rest API? Q7. What is the use of @Async annotation in spring boot? Q8. Explain internal implementation of HashMap. Q9. Can we use a mutable object as a key of a HashMap? Q10. Explain String pool and string object creation. Q11. When will we use API vs Message Queue? Q12. How to pass a value from parent to child component in Angular?
avatar

Senior Java Developer

Interviewed at OpSec Security Group

2.6
Mar 11, 2025

2nd Round: Q1. Find the count of employees in the same department using Stream API. Q2. Longest substring of distinct characters input1: abcabcbb output1: abc input2: abcabcd output2: abcd input3: abcadbcd output2: bcad Q3. What is ThreadPool? Q4. How to enable security for APIs in spring boot? Q5. How to pass files in Rest API of a spring boot application? Q6. How to give customized HttpStatus code in spring boot Rest API? Q7. What is the use of @Async annotation in spring boot? Q8. Explain internal implementation of HashMap. Q9. Can we use a mutable object as a key of a HashMap? Q10. Explain String pool and string object creation. Q11. When will we use API vs Message Queue? Q12. How to pass a value from parent to child component in Angular?

Viewing 5181 - 5190 interview questions

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