Question: Question 6: -- The statement s1.equalsIgnoreCase(s4) is equivalent to which of the following? s1.regionMatches(true, 0, s4, 0, s4.length()); s1.regionMatches(0, s4, 0, s4.length()); s1.regionMatches(0, s4, 0,

Question 6: -- The statement s1.equalsIgnoreCase(s4) is equivalent to which of the following? s1.regionMatches(true, 0, s4, 0, s4.length()); s1.regionMatches(0, s4, 0, s4.length()); s1.regionMatches(0, s4, 0, s4.length); s1.regionMatches(true, s4, 0, s4.length); Flag this Question

Question 7: -- The statement s1.startsWith("art") has the same result as which of the following? s1.regionMatches(0, "art", 0, 3); s2 = s1.getChars(0, 3); s2.equals("art"); s1.regionMatches(true, 0, "art", 0, 3); All of the above Flag this Question

Question 8: -- For String c = "hello world"; The Java statements int i = c.indexOf('o'); int j = c.lastIndexOf('l'); will result in: i = 4 and j = 8. i = 5 and j = 8. i = 4 and j = 9. i = 5 and j = 9. Flag this Question

Question 9: -- For String c = "Hello. She sells sea shells"; The Java statements int i = c.indexOf("ll"); int j = c.lastIndexOf("ll"); will result in: i = 2 and j = 24. i = 3 and j = 24. i = 2 and j = 25. i = 3 and j = 23. Flag this Question

Question 10: -- The String method substring returns ________. a char a String void a char[] Flag this Question

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!