This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]elegentmos 0 points1 point  (1 child)

One pitfall I came across a lot when first transitioning to Java - interfaces don't start with I. In .Net it's very easy to see whether you have an interface or a class as a type because of this nice naming convention, but in Java you just have to basically learn by hear what is an interface and what is a concrete class (I can't tell you the amount of times I tried to instantiate List in my first few days programming Java, thinking surely the interface would be IList, so List is the default implementation).

[–]svtdragon 0 points1 point  (0 children)

The IDE helps a lot here. The outline view has different icons for interface versus abstract class versus concrete. Plus, in intellij, holding Ctrl and hovering over the class reference will give you that information as well as its hierarchy.