Solved

Given the Following Code, What Is the Correct Statement to Insert

Question 46

Multiple Choice

Given the following code, what is the correct statement to insert the string str2 into str1, directly after the 'd'?
String str1="abcdefg";
String str2="ABCDE";


A) str1.insert4,str2) ;
B) str2.insert4,str1) ;
C) insertstr1,4) =str2;
D) insertstr2,4) =str1;

Correct Answer:

verifed

Verified

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

Related Questions