Question: What output is produced by the following code fragment? ( 6 ) String m 1 , m 2 , m 3 ; m 1 =

What output is produced by the following code fragment? (6)
String m1, m2, m3;
m1= "ABc";
m2= m1.toLowerCase();
m3= m1+""+ m2;
System.out.println(m3.replace('h','z'));
Answer:

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!