Java Senior Interview Questions

6,007 java senior interview questions shared by candidates

General java questions (But not a matter of listing but scenario based to ensure you understanding of concepts and theories) Go through your CV and ask questions based on the technologies and experience list on your CV. Technical session, Go through solving a small problem and building on from it, Architecture session (Give you a problem and ask you to design a solution by drawing flow diagram, I think also sequence diagram cant remember properly)
avatar

Senior Java Developer

Interviewed at LiveScore Group

3.4
Nov 19, 2025

General java questions (But not a matter of listing but scenario based to ensure you understanding of concepts and theories) Go through your CV and ask questions based on the technologies and experience list on your CV. Technical session, Go through solving a small problem and building on from it, Architecture session (Give you a problem and ask you to design a solution by drawing flow diagram, I think also sequence diagram cant remember properly)

L-1: Top10Employees list using Java 8 streams. Salary > 50000/- using Java 8 streams Salary > 50000/- and age < 40 (DOB) using Java 8 streams {1,2,3,4,5} sum = 6 Output {1,5} {2,4} using loops Questions: Java8 streams Functional interfaces HashMap internally working Red black tree @SpringBoot Application What happens without giving to the query params in @put method Schedulers CB pattern Uses of Kafka L-2: Spring boot & Microservices architect How to communicate Micro services How to call external APIs
avatar

Senior Java Developer

Interviewed at Deloitte

3.8
May 25, 2026

L-1: Top10Employees list using Java 8 streams. Salary > 50000/- using Java 8 streams Salary > 50000/- and age < 40 (DOB) using Java 8 streams {1,2,3,4,5} sum = 6 Output {1,5} {2,4} using loops Questions: Java8 streams Functional interfaces HashMap internally working Red black tree @SpringBoot Application What happens without giving to the query params in @put method Schedulers CB pattern Uses of Kafka L-2: Spring boot & Microservices architect How to communicate Micro services How to call external APIs

1) Java 11, 17, and 21 features. 2) What is the use of Optional? 3) What are intermediate and terminal operations? 4) In an interface, what is the purpose of default and static methods? 5) What is the Builder pattern? 6) How do you create an immutable class? 7) How do you share requests from one microservice to another? 8) Write a program to find the 2nd largest numbers in an unsorted array without using an inbuilt sort function. 9) How can we restrict a list from being modified? 10) What is transient? 11) What is volatile? 12) put vs patch ?
avatar

Senior Java Full Stack Engineer

Interviewed at CRISIL

3.8
Jul 11, 2025

1) Java 11, 17, and 21 features. 2) What is the use of Optional? 3) What are intermediate and terminal operations? 4) In an interface, what is the purpose of default and static methods? 5) What is the Builder pattern? 6) How do you create an immutable class? 7) How do you share requests from one microservice to another? 8) Write a program to find the 2nd largest numbers in an unsorted array without using an inbuilt sort function. 9) How can we restrict a list from being modified? 10) What is transient? 11) What is volatile? 12) put vs patch ?

1. How does Hashmap works internally. 1.2. Hasmap vs Hashtable vs SynchronizedHashmap 2. How to reverse array 3. What is synchronized keyword? and lot many questions followed it up. 4. Exceptions (Specially hierarchy related) 5. Spring Basics 6. Spring annotations 7. Hibernate Basics And Yes In MR round the interviewer may like to test your basic logic. He asked me to solve a puzzle like: How to get 2L water from using a 5L and 3L Bucket. and similarly 4L water.
avatar

Senior Java Developer

Interviewed at Persistent Systems

4.1
Dec 9, 2015

1. How does Hashmap works internally. 1.2. Hasmap vs Hashtable vs SynchronizedHashmap 2. How to reverse array 3. What is synchronized keyword? and lot many questions followed it up. 4. Exceptions (Specially hierarchy related) 5. Spring Basics 6. Spring annotations 7. Hibernate Basics And Yes In MR round the interviewer may like to test your basic logic. He asked me to solve a puzzle like: How to get 2L water from using a 5L and 3L Bucket. and similarly 4L water.

Viewing 5891 - 5900 interview questions

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