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

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

问题描述

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

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 程序员应该能够回答哪些问题?

我将这个问题标记为社区维基,因为它不是特定于用户的,它旨在为整个编程社区提供服务.

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

期待一些惊人的回应.

编辑:也请按照评论中的建议回答问题,以便人们也可以学习有关该语言的新知识.

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天全站免登陆