Java Senior Interview Questions

6,034 java senior interview questions shared by candidates

Write a code in which a method receives list and string and returns true if the string exists in list and false if it do not exist. What is scriplet and what is expression? What is the internal logic behind hashMap execution? Does hashmap size affects the performance of hashmap? This question is asked in almost all interviews. What is atomicity? Is count++ operation thread safe? Why? What is the difference between Callable and Runnable? What is the difference between IOC and dependency injection? Is dependency injection is the concept only used in Spring? what is the difference between final, finally and finalize? If we declare arrayList as final, can we remove elements from arrayList? How did you handled spring security in your project? What is a WSDL and different parts of WSDL? What are the advantages of REST over SOAP? Why should we implement Cloneable interface if we have to clone an object, though clone method comes from Object class? How is a variable shared between multiple threads? What is a thread deadlock? How do we avoid it? What is Hibernate Unidirectional and Bidirectional? What is the method to be overridden if we are implementing MessageDrivenBean? What are the advantages of using Generics?
avatar

Senior Java Developer

Interviewed at CGI

3.7
Mar 29, 2017

Write a code in which a method receives list and string and returns true if the string exists in list and false if it do not exist. What is scriplet and what is expression? What is the internal logic behind hashMap execution? Does hashmap size affects the performance of hashmap? This question is asked in almost all interviews. What is atomicity? Is count++ operation thread safe? Why? What is the difference between Callable and Runnable? What is the difference between IOC and dependency injection? Is dependency injection is the concept only used in Spring? what is the difference between final, finally and finalize? If we declare arrayList as final, can we remove elements from arrayList? How did you handled spring security in your project? What is a WSDL and different parts of WSDL? What are the advantages of REST over SOAP? Why should we implement Cloneable interface if we have to clone an object, though clone method comes from Object class? How is a variable shared between multiple threads? What is a thread deadlock? How do we avoid it? What is Hibernate Unidirectional and Bidirectional? What is the method to be overridden if we are implementing MessageDrivenBean? What are the advantages of using Generics?

Basic programming question to find the maximum profit you can earn by buying and selling from the list of stock prices 2. Design a reporting system with specific requirements like every day report and monthly reports, and should get data from monolith applications
avatar

Senior Java Developer

Interviewed at Mambu

3.1
Dec 12, 2022

Basic programming question to find the maximum profit you can earn by buying and selling from the list of stock prices 2. Design a reporting system with specific requirements like every day report and monthly reports, and should get data from monolith applications

Options method Spring boot flow Spring boot annotations Requestbody response body Transient entity id pathvariable request param qualifier primary Streams grouping by Design patterns Microservices How do they communicate explain
Sep 29, 2023

Options method Spring boot flow Spring boot annotations Requestbody response body Transient entity id pathvariable request param qualifier primary Streams grouping by Design patterns Microservices How do they communicate explain

he three rounds are basically asking you to be core Java developer, One or two questions each from Abstract classes and interfaces programming, one from general aptitude and the last question was from my previously working organisation.
avatar

Senior Java Programmer

Interviewed at Aurionpro Solutions

3.5
Sep 6, 2016

he three rounds are basically asking you to be core Java developer, One or two questions each from Abstract classes and interfaces programming, one from general aptitude and the last question was from my previously working organisation.

Viewing 3821 - 3830 interview questions

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