Question: What is the value of s 3 after the code that follows is executed? String s 1 = abc def ghi; String s 2 =

What is the value of s 3 after the code that follows is executed?
String s1= "abc def ghi";
String s2= s1.substring (1,5);
String s3= s2.replace ("b","z");
be d
zc d
abc d
azc d
zc de
What is the value of s 3 after the code that

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 Programming Questions!