Senior Developer Java Interview Questions

5,288 senior developer java interview questions shared by candidates

There are total 3 rounds round 1: coding round level easy they will share a link of qualified.io where they will ask 3 questions like sum of multiples of 3 and 5 upto a given number first non-repeated character in a string roman number to integer
avatar

Senior Java Developer

Interviewed at LogicMonitor

3.4
Feb 26, 2023

There are total 3 rounds round 1: coding round level easy they will share a link of qualified.io where they will ask 3 questions like sum of multiples of 3 and 5 upto a given number first non-repeated character in a string roman number to integer

1)Java 8 features, Predicate and some basics on Stream API 2)Multithreading concepts. Thread pool, how do we create it? Based on what thread pool size is taken? 3)Countdownlatch, Cyclicbarrier, Semaphore 4)Given an integer array, write code to know if it is sorted or not 5)@Component,@Qualifier,@Autowired 6)Binary Search and its time complexity 7)In one of the applications design, automatic word search is required. How do we make use of all the words in our dictionary?Are we going to store in a database? In memory? 8)BlockingQueue 9)Array and ArrayList differences 10)Given a sorted array in ascending order with no duplicates. Find pairs of elements which will sum up to a given number?Write the optimal code 11)HibernateTemplate 12)ClassLoader and its types 13)CrudRepository and it's usage
avatar

Senior Java Developer

Interviewed at Xactly Corp.

4
Jul 20, 2021

1)Java 8 features, Predicate and some basics on Stream API 2)Multithreading concepts. Thread pool, how do we create it? Based on what thread pool size is taken? 3)Countdownlatch, Cyclicbarrier, Semaphore 4)Given an integer array, write code to know if it is sorted or not 5)@Component,@Qualifier,@Autowired 6)Binary Search and its time complexity 7)In one of the applications design, automatic word search is required. How do we make use of all the words in our dictionary?Are we going to store in a database? In memory? 8)BlockingQueue 9)Array and ArrayList differences 10)Given a sorted array in ascending order with no duplicates. Find pairs of elements which will sum up to a given number?Write the optimal code 11)HibernateTemplate 12)ClassLoader and its types 13)CrudRepository and it's usage

Code: Q1. Design and implement a distributed cache system in Java, capable of handling high-throughput read and write requests across multiple nodes. The goal is to ensure data consistency and fault tolerance in case of node failures. Implement the following features: 1. Data Partitioning: Use consistent hashing to distribute data across multiple cache nodes. 2. Fault Tolerance: When a node fails, ensure that its data is redistributed to other nodes without losing information. 3. Read and Write Operations: Provide efficient APIs for put(key, value) and get(key) operations. 4. Concurrency: Ensure thread-safe operations for the cache. 5. Scalability: Allow dynamic addition and removal of nodes without affecting system performance. Constraints: • Implement the solution in a single Java class for simplicity. • Do not use third-party libraries for consistent hashing. Deliverables: • A working Java implementation of the distributed cache. • Explanation of your design decisions, including trade-offs.
avatar

Senior Java Developer

Interviewed at Andersen Lab

4.4
Mar 14, 2025

Code: Q1. Design and implement a distributed cache system in Java, capable of handling high-throughput read and write requests across multiple nodes. The goal is to ensure data consistency and fault tolerance in case of node failures. Implement the following features: 1. Data Partitioning: Use consistent hashing to distribute data across multiple cache nodes. 2. Fault Tolerance: When a node fails, ensure that its data is redistributed to other nodes without losing information. 3. Read and Write Operations: Provide efficient APIs for put(key, value) and get(key) operations. 4. Concurrency: Ensure thread-safe operations for the cache. 5. Scalability: Allow dynamic addition and removal of nodes without affecting system performance. Constraints: • Implement the solution in a single Java class for simplicity. • Do not use third-party libraries for consistent hashing. Deliverables: • A working Java implementation of the distributed cache. • Explanation of your design decisions, including trade-offs.

I didn't do the screening part properly I think. If you are not used to pair programming or cannot grasp the concept in an hour then you are out. They give you a small problem and you have to fix the failing unit tests. Mine was around the concept of event listeners, events, event managers etc. I think I was a bit stressed with the fact that they were watching me code and I have a limited time.
avatar

Senior Java Developer

Interviewed at Atlassian

3.2
Oct 10, 2013

I didn't do the screening part properly I think. If you are not used to pair programming or cannot grasp the concept in an hour then you are out. They give you a small problem and you have to fix the failing unit tests. Mine was around the concept of event listeners, events, event managers etc. I think I was a bit stressed with the fact that they were watching me code and I have a limited time.

Viewing 4011 - 4020 interview questions

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