Java Senior Interview Questions

6,013 java senior interview questions shared by candidates

Question: Count the email domains List employees = new ArrayList<>(); employees.add(new Employee("A", "A@google.com")); employees.add(new Employee("b", "b@gmail.com")); employees.add(new Employee("C", "C@google.com")); employees.add(new Employee("D", "D@yahoo.com"));
avatar

Senior Java Software Engineer

Interviewed at EPAM Systems

4
Jul 7, 2023

Question: Count the email domains List employees = new ArrayList<>(); employees.add(new Employee("A", "A@google.com")); employees.add(new Employee("b", "b@gmail.com")); employees.add(new Employee("C", "C@google.com")); employees.add(new Employee("D", "D@yahoo.com"));

1. Explain the role of dependency injection in Spring Boot and how it facilitates modular and testable code. 2. Discuss the advantages and challenges of using microservices architecture compared to monolithic architecture in large-scale applications.
avatar

Senior Java Developer

Interviewed at Wipro

3.6
Apr 17, 2024

1. Explain the role of dependency injection in Spring Boot and how it facilitates modular and testable code. 2. Discuss the advantages and challenges of using microservices architecture compared to monolithic architecture in large-scale applications.

Ways of creating thread. When to use runnable and when to use Thread. Abstract Class Instantiation of Abstract class Singleton classes Where singleton design can break? Custom class object as key in hashmap Identity hashmaps---equality is done using reference (==) Concurrent hashmaps--contains segments--1Sements = 1 Hasmap(Conceptually) Final class
avatar

Senior Java Developer

Interviewed at Capgemini

4.1
Jul 20, 2025

Ways of creating thread. When to use runnable and when to use Thread. Abstract Class Instantiation of Abstract class Singleton classes Where singleton design can break? Custom class object as key in hashmap Identity hashmaps---equality is done using reference (==) Concurrent hashmaps--contains segments--1Sements = 1 Hasmap(Conceptually) Final class

Viewing 5991 - 6000 interview questions

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