I am confused about the following code. Why does it compare with both ==
and equals
method?
(validFolderRow.getBondTAFolderType() == null || validFolderRow.getBondTAFolderType().equals("null"))
What's the difference between equals() and ==?
Can anyone tell me what is the difference between
validFolderRow.getBondTAFolderType() == null
and
validFolderRow.getBondTAFolderType().equals("null")
?