r/javahelp • • Jul 04 '20

Java Technical Interview Advice

Hey Guys, I have a technical interview for Java next week, the interviewer will be asking me some concepts about Java. Could you guys give me some general tips and also if you had a previous java technical interview, what general Java questions did they ask you?

Thanks guys!!

21 Upvotes

10 comments sorted by

View all comments

1

u/younanimous_decision Jul 05 '20

some things that came up for me:

  1. i was pressed on my ability to communicate my reasoning quite a bit. "why did you do it this way? what not that way? can you do it other ways too?"

  2. i was given a mini program specification for a command line utility, asked to write it, then they we did a code review with three devs where they combed through it with a fine tooth comb

  3. one guy liked to ask dumb "gotcha" questions - like putting return statements in a catch() and also in a finally() block and asking which will win

these days i tend to do the interviewing. i like to ask about skills that i think are super important at our workplace, and i like to be open ended and conversational. some things i ask:

  1. streams api. we deal with a lot of data manipulation and mapping. streams api makes life easier for that kind of work, been around since java 8.

  2. sql and databases. although the application is all java and web, you need to be comfortable with the data source.

  3. inversion of control concepts, spring framework in particular

  4. testing if they understand thread safety

one coworker likes to have them write fizzbuzz