每个优秀的Java / Java EE开发人员应该能够回答的问题? [英] Questions every good Java/Java EE Developer should be able to answer?

查看:137
本文介绍了每个优秀的Java / Java EE开发人员应该能够回答的问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过每个好的问题.Net开发人员应该能够回答,并且对这个问题的内容和方法印象深刻,因此本着同样的精神,我向Java / Java EE Developer提出这个问题。

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.

您认为好的 Java / Java EE程序员应该回答什么问题

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.

推荐答案


接口可以扩展多个
接口吗?

Can an interface extend multiple interfaces?

大多数人回答否,因为他们知道java没有多重继承。但是接口仍然可以扩展多个接口(但是类不能扩展多个类)。这不会导致钻石问题。

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

这篇关于每个优秀的Java / Java EE开发人员应该能够回答的问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆