by dhotson · 14y ago · 0 comments
These questions might seem pretty lame, but as an interviewer it does tell you something about the candidate's level of experience with a language.
If you've worked with a language for any decent amount of time. There are things that you really should know without having to look it up all the time.
This is especially true if you mention on your resume that you're an expert at something. I'm definitely going to ask you a difficult question about it and I'll expect you to answer in some depth.
If you mention you're a Java pro but can't tell me what the 'synchronized' keyword does for example. I'd be concerned.
However if you are trying to hire some kind of junior-like engineer who has never had a job before, i can see why questions like this could be asked, but i still dont think it's the best way to gather knowledge about the person you are interviewings level of expertise.
If you have an applicant who has a github full of great code or experience working for a good software company you can probably skip this.
However if you get a candidate without much on paper but who insists they are a Java expert but doesn't know what the extends keyword does then there is something wrong somewhere.
The problem with asking for definitions for words though is that I personally often forget exactly what these are if I ever learned the correct term in the first place.
For example I knew how to override methods and the differences between the type system in PHP and the one in Java long before I knew what polymorphism or "dynamic typing" meant.
The problem is: people lie.
It's the old thing where if you want to hire a juggler, don't you want to see them juggle?
It is a huge turn off for a lot of people and indicates that the interviewer is either too lazy to make the question interesting, or not technical enough to generate an actual good question. Either way it is a red flag.
If you want to ask difficult questions, be my guest. But "what package is class X in?" is not difficult, just foolish.