Computer Applications

Write down the syntax to compare two Strings(str1, str2) are same or not.

Java String Handling

45 Likes

Answer


boolean res = str1.equals(str2);

Answered By

29 Likes


Related Questions