Question: EX 3.5 What output is produced by the following code fragment? String mi, m2, m3; m1 = Quest for the Holy Grail; = m2

EX 3.5 What output is produced by the following code fragment? String

EX 3.5 What output is produced by the following code fragment? String mi, m2, m3; m1 = "Quest for the Holy Grail"; = m2 mi.toLowerCase(); m3 mi +m2 System.out.println (m3.replace('g', 'z'));

Step by Step Solution

3.52 Rating (149 Votes )

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 Java Software Solutions Questions!