I have seen most cases developers use first string and after that variable used in .equal operation. What is the reason?
.equal
Because if var is null you won't raise a NullPointerException.