-
What is the output of this program?
public class Result
{
public static void main(String args[])
{
String str1 = "Hello";
String str2 = new String(str1);
String str3 = "HELLO";
System.out.println(str1.equals(str2) + " " + str2.equals(str3));
}
}
-
- false
- true
- true false
- false true
- None of these
Correct Option: C
true false