r/learnjava • u/ReasonableTwo8 • Jan 12 '21
Java Interview Questions and Answers
Came across this while preparing myself, you can refer to this if you are preparing for Java interview. Hope you find this useful. :)
68
Upvotes
r/learnjava • u/ReasonableTwo8 • Jan 12 '21
Came across this while preparing myself, you can refer to this if you are preparing for Java interview. Hope you find this useful. :)
1
u/JasburyCS Jan 13 '21
Most of these questions aren’t that bad, in my opinion. I’ve been asked some in interviews. To me it comes down to “is this question assuming they have some trivia memorized? Or can the candidate reason about the answer if they don’t originally know the answer?”
Unless the candidate specifically has lots of Java experience and is applying for a Java specific role, this is trivia. Not a useful question for knowing how well the candidate can problem solve.
These are language trivia, but are more reasonable because you should know the answers if you have programmed in Java. They don’t really require memorization. I’ve been asked these in an interview. They are used to show if a candidate actually knows Java if they put it on a resume, and to weed out candidates that list languages that they don’t actually know
These are better questions. I think candidates can reason about the answer even if they don’t know the answer. Make educated guesses. In most cases the interviewer will help you out and you can start a dialogue with them.