Solved

String OneStr = "Welcome Jim" String TwoStr = "Welcome Joe

Question 20

Multiple Choice

String oneStr = "Welcome Jim" String twoStr = "Welcome Joe"
Given the lines of code above, which of the following regionMatches() expressions will result in a value of true ?


A) oneStr.regionMatches(8, twoStr, 8, 3)
B) oneStr.regionMatches(0, twoStr, 0, 7)
C) oneStr.regionMatches(8, twoStr, 0, 3)
D) oneStr.regionMatches(0, twoStr, 8, 3)

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions