Tips and Traps¶
Use
==
(instead of the methodObject.equals
) to compare objects is a common and tricky mistake for beginner.You cannot define an abstract static method. This is because "abstract" means that no functionality is implemented while "static" means that functionality exists even there is no object. The two conflict in concept.