Questions every good Java/Java EE Developer should be able to answer?

I was going through Questions every good .Net developer should be able to answer and was highly impressed with the content and approach of this question, and so in the same spirit, I am asking this question for Java/Java EE Developer.

What questions do you think should a good Java/Java EE programmer be able to answer?

I am marking this question as community wiki as it is not user specific and it aims to serve programming community at large.

Looking forward for some amazing responses.

EDIT : Please answer questions too, as suggested in the comments, so that people could learn something new regarding the language, too.


What is the relationship between hashCode() and equals()? What is the significance of these methods? What are the requirements for implementing them?


What is the difference between Set, Map and List?

I'm still amazed how many people don't know this one in a telephone interview.


Can an interface extend multiple interfaces?

Most people answer "no", because they know java doesn't have multiple inheritance. But an interface can still extend multiple interfaces (but a class can't extend multiple classes). This doesn't lead to the diamond problem.

If the answer is "no", the interviewer should ask "why would it be forbidden?". Then you start thinking about it and you should realize that there is not problem with it.

So you learned something (by yourself) in the interview and you showed the interviewer that you are able to reason about classes, objects, inheritance, polymorphism, etc. It's actually much better than a candidate who knows the answer by heart but doesn't understand why

链接地址: http://www.djcxy.com/p/68344.html

上一篇: igraph或其他库文库重叠社区检测

下一篇: 问问每一位优秀的Java / Java EE开发人员应该能够回答?