r/SpringBoot • • Jan 08 '25

133 Java Interview Questions Answers for 2 to 5 Years Experienced Programmers

https://javarevisited.blogspot.com/2015/10/133-java-interview-questions-answers-from-last-5-years.html

[removed] — view removed post

80 Upvotes

5 comments sorted by

33

u/KillDozer1996 Jan 08 '25 edited Jan 08 '25

I hate these interviews with passion. I want to see these things used in practice, show me a project you worked on or create some small system in 1 week as part of interview...
These kinds of interviews are done by people that are "experts in interviews" and target people that are grinding interview questions.
After these guys pass interviews then the second you let them touch the code they start cooking spaghetti.

Ask how spring works, new java features, how would you implement some shit with producer / consumer. Ask about transactions....

Same thing as "grinding leetcode" - if I saw someone manually traversing custom implementation of linked list in project codebase, I would literally rip his throat out

Question 10) is Swing thread-safe?
If someone asks me that, I'm getting the fuck out of that interview that second. This means you will work on something that is nearly as old as you, but with more issues.

8

u/Holothuroid Jan 08 '25

You have high tolerance for bullshit, if this is the question that took you out.

1

u/javinpaul Jan 08 '25

I understand where are you coming from but these are not the only test companies do, nowadays you have to pass coding test to even get to these stage. Btw, many of these questions were asked to me on multiple interviews in last 15 years. So not preparing them is something you can't afford if you really want that job or want to crack the interview.

8

u/KillDozer1996 Jan 08 '25

Yes, I understand, but I think people should focus on some interview red flags as well. Depends on what kind of job you are seeking I guess...

1

u/javinpaul Jan 09 '25

yes, especially if you are a senior developer and have choice or have more offers. Most of the time you can also get hint about culture and knowledge about the team you are going to work with the questions they ask.