Leave a Reply 1

Your email address will not be published. Required fields are marked *


renko

renko

Answer: C

Code question:
public class String1 {

public static void main(String[] args) {
String s = “123”;
if (s.length() > 2)
s.concat(“456”);
for(int x = 0; x < 3; x++)
s += "x";
System.out.println(s);
}
}
Output:
123xxx