What will be the output of the program?


			  		

Loading

Choose the correct option.

What will be the output of the program?

String d = "bookkeeper"; 
d.substring(1,7);
d = "w" + d;
d.append("woo"); /* Line 4 */
System.out.println(d);

 

A. wookkeewoo
B. wbookkeeper
C. wbookkeewoo
D. Compilation fails.

Leave a Comment