Java Senior Interview Questions

6,023 java senior 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

Perguntas sobre sua trajetória, tecnologias que já utilizou, arquitetura de software, ferramentas de DevOps, sua rotina como desenvolvedor, etc. Sempre há perguntas mais detalhadas para entender o seu nível de exposição e aprofundamento naquela tecnologia.
avatar

Desenvolvedor Java Sênior

Interviewed at Ambev Tech

4.1
Jun 18, 2022

Perguntas sobre sua trajetória, tecnologias que já utilizou, arquitetura de software, ferramentas de DevOps, sua rotina como desenvolvedor, etc. Sempre há perguntas mais detalhadas para entender o seu nível de exposição e aprofundamento naquela tecnologia.

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.

Viewing 4581 - 4590 interview questions

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