Question:Given two String variables str1="Hello" and str2="World", which of the following 2 ways can be used to concatenate the 2 strings and store the result in str1? 

A str1= str1+str2; 

B str2.concat(str1,str2); 

C str1.concat(str1,str2); 

D str1.concat(str2); 

E str2.concat(str1); 

+ Answer
+ Report
Total Preview: 375

Copyright © 2025. Powered by Intellect Software Ltd