

MCQOPTIONS
Saved Bookmarks
1. |
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)); } } |
A. | false |
B. | true |
C. | true false |
D. | false true |
E. | None of these |
Answer» D. false true | |