141k views
5 votes
if str1 and str2 are both string objects, which of the following expressions will correctly determine whether or not they are equal? str1

User Jaesung
by
7.5k points

1 Answer

6 votes

Answer: (makefile)

str1 == str2

Step-by-step explanation:

To determine if two strings str1 and str2 are equal, we can use the equality operator ==. Therefore, the correct expression to determine if str1 and str2 are equal is:

User Alisettar Huseynli
by
8.0k points