Java Senior Interview Questions

6,017 java senior interview questions shared by candidates

Interview process is arbitrary in nature. They don't stick to JD and ask irrelevant questions. Example: Nosql db is not consistent and how you manage transactions. When said use trasaction manager from above layer adoptiong saga pattern they said no, again said few Nosql like mogodb and fynamodb do suport transactions they didn't agree, next I said don't use it use MySQL relational db itself for trasaction data. This one question only they kept on cribbing.I asked if they want distributed or local transaction they got annoyed and make me feel interview is over.I dint understand what Java interview is this. But I am at receiving end.
avatar

Senior Java Architect

Interviewed at Mphasis

3.4
Jul 23, 2023

Interview process is arbitrary in nature. They don't stick to JD and ask irrelevant questions. Example: Nosql db is not consistent and how you manage transactions. When said use trasaction manager from above layer adoptiong saga pattern they said no, again said few Nosql like mogodb and fynamodb do suport transactions they didn't agree, next I said don't use it use MySQL relational db itself for trasaction data. This one question only they kept on cribbing.I asked if they want distributed or local transaction they got annoyed and make me feel interview is over.I dint understand what Java interview is this. But I am at receiving end.

internal structure of arraylist or any collection data structures. oops concepts, spring framework details configuration etc. hibernate concepts like differences btw so and so methods, cache mechanisms. interview is manageable If you had worked on basic concepts. their main work will be on restful webservices and microservices. so if you're good in those job is yours
avatar

Senior Java Developer

Interviewed at Happiest Minds Technologies

3.7
Dec 14, 2017

internal structure of arraylist or any collection data structures. oops concepts, spring framework details configuration etc. hibernate concepts like differences btw so and so methods, cache mechanisms. interview is manageable If you had worked on basic concepts. their main work will be on restful webservices and microservices. so if you're good in those job is yours

I was asked to write two codes in a plane paper sheet.After that I had my first round of interview where I have been asked good java questions: Question asked were: ConcurrentHashMap internal implementation, Producer Consumer Code.Few more coding questions . Later I have been asked to wait for 2nd round and believe me I had to wait almost 7 hours to have my second round. Around 8 Pm I was called for second round of technical discussion.There were two people in the panel (Ravi and Pawan) .Firstly Ravi asked me to describe about my current project which I explained him very well but in between the so called A Technical architect Ravi asked why you have used url in your rest service call and believe me he don't even know this. Later, Pawan asked me ,how to identify whether a linked list is circular or not which I answered him well.Then he asked me one puzzle ,which I was trying to solve in between Ravi laughed and said hey this is the simplest puzzle and I had solved in my college days.They were speaking among themselves that this guy is not studied well in college.I could have told them look at my percentage and then comment but I smiled and kept quite.One matrix traversal question Pawan asked which I answered using two pointers to give best possible time complexity.But the so called Architect Ravi saying why to use two pointers ,you can do it using one pointer ,which was baseless as it will be a linear search so no gain in this iteration.I really doubt about their technical knowledge. My suggestion would be for those guys who actually looking out for a change please don't waste your time attending interview in Synechron as you will not going to learn anything but You will get a chance to meet those unprofessional and no techie guys there.
avatar

Senior Java Developer

Interviewed at Synechron

4.2
Nov 12, 2017

I was asked to write two codes in a plane paper sheet.After that I had my first round of interview where I have been asked good java questions: Question asked were: ConcurrentHashMap internal implementation, Producer Consumer Code.Few more coding questions . Later I have been asked to wait for 2nd round and believe me I had to wait almost 7 hours to have my second round. Around 8 Pm I was called for second round of technical discussion.There were two people in the panel (Ravi and Pawan) .Firstly Ravi asked me to describe about my current project which I explained him very well but in between the so called A Technical architect Ravi asked why you have used url in your rest service call and believe me he don't even know this. Later, Pawan asked me ,how to identify whether a linked list is circular or not which I answered him well.Then he asked me one puzzle ,which I was trying to solve in between Ravi laughed and said hey this is the simplest puzzle and I had solved in my college days.They were speaking among themselves that this guy is not studied well in college.I could have told them look at my percentage and then comment but I smiled and kept quite.One matrix traversal question Pawan asked which I answered using two pointers to give best possible time complexity.But the so called Architect Ravi saying why to use two pointers ,you can do it using one pointer ,which was baseless as it will be a linear search so no gain in this iteration.I really doubt about their technical knowledge. My suggestion would be for those guys who actually looking out for a change please don't waste your time attending interview in Synechron as you will not going to learn anything but You will get a chance to meet those unprofessional and no techie guys there.

1. quick , merge sort 2. hibernate caching 3. sessionfactory vs session 4. Spring DI, constructor vs setter DI, which is better 5. exception vs error 6. runtime vs comile time error, need 7. classDefException vs noClassfoundExcption ,which 1 occurs at compile time,how to avoid compile excption 8. arraylist vs linkedList 9. hashset 10. datastructure for hashset n arraylist 11. internal working of hashset 12. Employee e =new employee(); Employee e1= e; e == null; syso(e1) ?
avatar

Senior Java Software Engineer

Interviewed at Capgemini

4.2
Apr 27, 2017

1. quick , merge sort 2. hibernate caching 3. sessionfactory vs session 4. Spring DI, constructor vs setter DI, which is better 5. exception vs error 6. runtime vs comile time error, need 7. classDefException vs noClassfoundExcption ,which 1 occurs at compile time,how to avoid compile excption 8. arraylist vs linkedList 9. hashset 10. datastructure for hashset n arraylist 11. internal working of hashset 12. Employee e =new employee(); Employee e1= e; e == null; syso(e1) ?

Viewing 641 - 650 interview questions

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