They're basically the same thing. http://stackoverflow.com/questions/7520432/java-vs-equals-confusion