SyntaxFix
Write A Post
Hire A Developer
Questions
Because equal is a function derived from Object class, this function compares items of the class. if you use it with null it will return false cause cause class content is not null. In addition == compares reference to an object.