5. What is the output for this program?
charArray[] = {'h','a','p','p','y',' ','b','i','r','t','h','
','d','a','y'};
String s = new String("hello");
String s1 = new String(s);
String s2 = new String(charArray);
String s3 = new String(charArray,6, 5);
String output = "s1= " + s1 + "s2= "+ s2 + "s3= "+ s3;
|
|