Different between !.equals and !=

Are there any differencies between these two code ?

    if (!a.equals("")) {
                editDate.setText(a)
     }

and

  if (a!="") {
        editDate.setText(a)
    }