我只想澄清一件事。这不是哪个更好的问题,这部分我留给别人讨论。我不在乎。 我在面试时被问到过这个问题,我想多了解一点可能会有用。
以下是我能想到的:
Java is "platform independent". Well nowadays you could say there is the Mono project so C# could be considered too but I believe it is a bit exaggerating. Why? Well, when a new release of Java is done it is simultaneously available on all platforms it supports, on the other hand how many features of C# 3.0 are still missing in the Mono implementation? Or is it really CLR vs. JRE that we should compare here? Java doesn't support events and delegates. As far as I know. In Java all methods are virtual Development tools: I believe there isn't such a tool yet as Visual Studio. Especially if you've worked with team editions you'll know what I mean.
请补充其他你认为相关的。
更新: 我突然想到,Java在类、方法等上没有自定义属性。真的是这样吗?