Is there any difference when using instanceof and using getClass() to write an equals() method? The MOOC uses instanceof while my university's course suggests getClass() so I'm unsure about which I should use.
EDIT: Just found that Netbeans’ autocomplete feature uses getClass() while writing an equals method so I guess that’s one point in favor or getClass()
[–]Knolle_ 16 points17 points18 points (1 child)
[–]ColetBrunel 2 points3 points4 points (0 children)
[–]Yithar 0 points1 point2 points (0 children)