Generally . equals is used for Object comparison , where you want to verify if two Objects have an identical value. == for reference comparison (are the two Objects the same Object on the heap) & to check if the Object is null.20 Nis 2009
Generally . equals is used for Object comparison , where you want to verify if two Objects have an identical value. == for reference comparison (are the two Objects the same Object on the heap) & to check if the Object is null.20 Nis 2009