Question 1
Suppose s1 and s2 are two strings. Which of the following statements or expressions are incorrect?
◦ s1 >= s2
◦ String s3 = s1 + s2
◦ s1.charAt(0) = '5'
◦ String s = new String("new string");
◦ int i = s1.length
Question 2
What is the output of the following code?
String s = "University";
s.replace("i", "ABC");
System.out.println(s);
◦ UnABCversity
◦ UniversABCty
◦ UnABCversABCty
◦ University