Java Software Developer Interview Questions

3,069 java software developer interview questions shared by candidates

In this round basics of java 8 like functional interface ,lamda expression, comparable vs comparator.Also I have mentioned about spring boot so they asked few annotations amd why they are used(@respository,@service,etc)
avatar

Software Engineer - Java Developer

Interviewed at Infosys

3.6
Jan 3, 2023

In this round basics of java 8 like functional interface ,lamda expression, comparable vs comparator.Also I have mentioned about spring boot so they asked few annotations amd why they are used(@respository,@service,etc)

Technical Questions : 1. Difference between comparator and comparable ? when would we use comparator ? 2. what is a functional interface? 3. what are different type of data structures you use ? 4. using java 8 convert an array of integers to comma seprated string . 5. difference between array list and linked list ? and which is faster for retrieval? 6. can we use classes as keys in has map ? 7. Singleton prototype in thread. 8. Scope in spring boot ? 9 Do you know patch in spring boot ? 10. when will the dependencies be loaded ? at run time or static time ? 11. If I have two classes with same name what happens ? 12. if I use a concurrent hash map how is it thread safe ? 13. what happens if I try to put a same key in hash map twice ? 14.if i have a custom object as key in hash map how is hash value computed ? 15. what is a method and function level locking ? 16. what are functional interfaces ? 17 . does spring boot use eager or lazy loading ? 18. what is Optional class in spring boot ? 19. what is circular dependency in spring boot.
avatar

Java Software Developer

Interviewed at TSYS|Total System Services

3.6
Aug 13, 2024

Technical Questions : 1. Difference between comparator and comparable ? when would we use comparator ? 2. what is a functional interface? 3. what are different type of data structures you use ? 4. using java 8 convert an array of integers to comma seprated string . 5. difference between array list and linked list ? and which is faster for retrieval? 6. can we use classes as keys in has map ? 7. Singleton prototype in thread. 8. Scope in spring boot ? 9 Do you know patch in spring boot ? 10. when will the dependencies be loaded ? at run time or static time ? 11. If I have two classes with same name what happens ? 12. if I use a concurrent hash map how is it thread safe ? 13. what happens if I try to put a same key in hash map twice ? 14.if i have a custom object as key in hash map how is hash value computed ? 15. what is a method and function level locking ? 16. what are functional interfaces ? 17 . does spring boot use eager or lazy loading ? 18. what is Optional class in spring boot ? 19. what is circular dependency in spring boot.

Viewing 701 - 710 interview questions

Glassdoor has 3,069 interview questions and reports from Java software developer interviews. Prepare for your interview. Get hired. Love your job.