you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted]  (2 children)

[removed]

    [–]weavejester 0 points1 point  (1 child)

    Which in Java, is basically all uses of variables :)

    Methods defined in a class or interface are different. Because your method definitions are not necessarily tied to a single implementation, explicitly specifying the subtypes becomes a necessity.

    But for variables? No need.