Java Software Engineer Interview Questions

4,188 java software engineer interview questions shared by candidates

1. Questions were based on design, cache design, 2. Indexing in Sql 3.An array is given, 0,0,0,0,1,1,1,1.... Print the index of 1 when came first time or, if array is 1,1,1,1,0,0,0,0.... Write code to print the index of 0 appeared 1st time in the array
avatar

Software Engineer - Java Developer

Interviewed at Infosys

3.6
Mar 26, 2024

1. Questions were based on design, cache design, 2. Indexing in Sql 3.An array is given, 0,0,0,0,1,1,1,1.... Print the index of 1 when came first time or, if array is 1,1,1,1,0,0,0,0.... Write code to print the index of 0 appeared 1st time in the array

Technical Questions: 1. Do you use interceptors and filters ? 2. how would you design and endpoint for a url ? 3. different kind of patterns ? 4. connection to db is it singleton ? for every request is a new connection established to db? 5. Why do we need serialization and Deserialization? 6.Why do we need serialize id ? 7. Explain data base connection process ? 8. what do you want to do if you want to create run time object? 9. if you have to explain polymorphism to a non technical person ? how do you do it ? 10. if you have a dictionary what data structure will you use ? 11. if you not a value how will you get the key ? 12. what is factory method ? 13. what are all the annotations that you have used so far ? 14 can I interchange @Repository tag to @Service tag will it throw error ? 15. what all features of spring boot did you use ? 16. what version of spring boot are you using ? 17. did you use exceptors ?
avatar

Java Software Developer

Interviewed at TSYS|Total System Services

3.6
Aug 13, 2024

Technical Questions: 1. Do you use interceptors and filters ? 2. how would you design and endpoint for a url ? 3. different kind of patterns ? 4. connection to db is it singleton ? for every request is a new connection established to db? 5. Why do we need serialization and Deserialization? 6.Why do we need serialize id ? 7. Explain data base connection process ? 8. what do you want to do if you want to create run time object? 9. if you have to explain polymorphism to a non technical person ? how do you do it ? 10. if you have a dictionary what data structure will you use ? 11. if you not a value how will you get the key ? 12. what is factory method ? 13. what are all the annotations that you have used so far ? 14 can I interchange @Repository tag to @Service tag will it throw error ? 15. what all features of spring boot did you use ? 16. what version of spring boot are you using ? 17. did you use exceptors ?

1)Explain current domain and technical stack 2)How do manage exceptions in spring boot project 3)How to submit exceptions from child to parent 4)Spring boot profiling how to setup 5)Concurrent modification exception 6)Optional class 7)Difference between @RestController and @Controller 8)Hashmap vs Hashtable 9)How do you use polymorphism in your project 10)When to use interface and when to use abstract class 11)Fail fast and fail safe 12)Explain flow for the endpoint getAllEmployee () method
avatar

Software Engineer - Java Developer

Interviewed at Infosys

3.6
May 20, 2023

1)Explain current domain and technical stack 2)How do manage exceptions in spring boot project 3)How to submit exceptions from child to parent 4)Spring boot profiling how to setup 5)Concurrent modification exception 6)Optional class 7)Difference between @RestController and @Controller 8)Hashmap vs Hashtable 9)How do you use polymorphism in your project 10)When to use interface and when to use abstract class 11)Fail fast and fail safe 12)Explain flow for the endpoint getAllEmployee () method

Viewing 3901 - 3910 interview questions

Glassdoor has 4,188 interview questions and reports from Java software engineer interviews. Prepare for your interview. Get hired. Love your job.