Question: Consider the following program fragment. String t = new String ( adamant ) ; String u = new String ( adamant
Consider the following program fragment.
String new Stringadamant;
String u new Stringadamant;
String v new Stringresolute;
String new Stringresolute;
if compareTo
I
if vequalsw
System.out.printlnBubble A;
else
System.out.printInBubble B;
else
i
if vequalsw
System.out.printlnBubble C;
else
System.out.printinBubble D;
What is printed by the given program?
A Bubble C
B Bubble A
C Bubble B
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
