Java Senior Interview Questions

6,031 java senior interview questions shared by candidates

How Do you implement observer design pattern? Which design patterns do you know? Which are the collections interfaces? Given the fibonacci sequence array, sort the array with all the odd numbers at the begining and the non even numbers at the end. Don’t use any temp array.
avatar

Senior Java Software Engineer

Interviewed at EPAM Systems

4
Aug 11, 2021

How Do you implement observer design pattern? Which design patterns do you know? Which are the collections interfaces? Given the fibonacci sequence array, sort the array with all the odd numbers at the begining and the non even numbers at the end. Don’t use any temp array.

1. What is the difference between ArrayList and LinkedList? 2. What is the advantage of the Properties file? 3. How is the safety of a thread achieved? 4. How to implement the producer-consumer problem by using BlockingQueue? 5. What is the lock interface in Concurrency API in Java? 6. In Java 8, what is Method Reference? 7. How to find the third element from the end in a linked list in one pass?
avatar

Senior Java Developer

Interviewed at Publicis Sapient

3.4
Sep 27, 2021

1. What is the difference between ArrayList and LinkedList? 2. What is the advantage of the Properties file? 3. How is the safety of a thread achieved? 4. How to implement the producer-consumer problem by using BlockingQueue? 5. What is the lock interface in Concurrency API in Java? 6. In Java 8, what is Method Reference? 7. How to find the third element from the end in a linked list in one pass?

Questions: a. What is Eden and survivor space in a heap? b. How to analyze Java memory issues? c. Java inner classes and functions d. Can you list serialization methods? e. Some coding questions like guessing the output f. Describe a time when you felt stressed or overwhelmed. How did you handle it? g. How do you determine what amount of time is reasonable for a task? h. Code writing for a situation
avatar

Senior Java Developer

Interviewed at Publicis Sapient

3.4
Sep 16, 2021

Questions: a. What is Eden and survivor space in a heap? b. How to analyze Java memory issues? c. Java inner classes and functions d. Can you list serialization methods? e. Some coding questions like guessing the output f. Describe a time when you felt stressed or overwhelmed. How did you handle it? g. How do you determine what amount of time is reasonable for a task? h. Code writing for a situation

1. What is hash-collision in Hashtable? How is it handled in Java? 2. Can we make the user thread a daemon thread if the thread is already started? 3. What do you mean by Semantic Monitoring? 4. Explain the working of Microservice Architecture. 5. What issues are generally solved by spring clouds? 6. How does the put() method of HashMap work in Java? 7. How to design a good key for HashMap? 8. Why String, Integer, and other wrapper classes are considered good keys?
avatar

Senior Java Developer

Interviewed at Publicis Sapient

3.4
Sep 28, 2021

1. What is hash-collision in Hashtable? How is it handled in Java? 2. Can we make the user thread a daemon thread if the thread is already started? 3. What do you mean by Semantic Monitoring? 4. Explain the working of Microservice Architecture. 5. What issues are generally solved by spring clouds? 6. How does the put() method of HashMap work in Java? 7. How to design a good key for HashMap? 8. Why String, Integer, and other wrapper classes are considered good keys?

2. Which design pattern you would suggest in a sample question? 3. Calculate the output of the code? 4. Which algorithm will be better if 1 million runs complete daily? Calculate the time complexity. 5. How do I read/convert an InputStream into a String in Java?
avatar

Senior Java Developer

Interviewed at Publicis Sapient

3.4
Oct 5, 2021

2. Which design pattern you would suggest in a sample question? 3. Calculate the output of the code? 4. Which algorithm will be better if 1 million runs complete daily? Calculate the time complexity. 5. How do I read/convert an InputStream into a String in Java?

Viewing 1861 - 1870 interview questions

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