This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
How to override any method? Also, SearchFirst to find many topics which have enough hints in them on how to override it properly. However it's implemented, it will involve either using instanceof, comparing classes or only ==.
Joined: Sep 06, 2007
Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - missing return statement
The name. The equals method of object isn't a special method. It's just a method with returns a boolean. The only special thing about it is that it is used in Collections to determine if the object is equal to another object. Arrays.equals() takes to arrays and compares them and returns if they are equal.