The equals method will check with the contents of theString are the same while the == will check if thereferences are to the same objectso if(a == c) will equate to false.