1)System.out.println("SCJP" == "scjp".toUpperCase() ) will print false why?
5)String str = "SCJP";String str2 = "";
System.out.println(str == (str + str2).intern()); will print true why?;
6)String str = "SCJP";String str2 = ""; // There is no space between double quotes.
System.out.println(str == str + str2); print false why?
7)String str = "SCJP"; String str2 = str.concat(""); // There is no space between double quotes.
System.out.println(str == str2); will print true why?
8)int arr1[] = {1,2,3,4}; int arr2[] = {1,2,3,4};
System.out.println(arr1.equals(arr2)); will print false why?
9)String str1="Java"; System.out.println(str1 == "Ja"+"va");
will print true why?
10)String str1= "Ja"; String str2= "va"; String str3= "Java"; System.out.println(str3 == str1 + str2); will print false why?
11)Object strarr [] = {"Welcome",null};
Object strarr2 [] = {"Welcome",null};
System.out.println(strarr[1] == strarr2[1] );wiill print true and System.out.println(strarr[1].equals(strarr2[1]) ); will print flase why?