How do you correctly compare two strings str1 and str2 for content equality in Java?
A) str1 == str2
B) str1.equals(str2)
C) str1.compareTo(str2) == 0
Both a and b
Both b and c