B Bảo Vy Member Sep 19, 2021 #1 What will be the output of the following Java program? Code: class output { public static void main(String args[]) { StringBuffer s1 = new StringBuffer("Hello"); s1.setCharAt(1,x); System.out.println(s1); } } A. xello B. xxxxx C. Hxllo D. Hexlo
What will be the output of the following Java program? Code: class output { public static void main(String args[]) { StringBuffer s1 = new StringBuffer("Hello"); s1.setCharAt(1,x); System.out.println(s1); } } A. xello B. xxxxx C. Hxllo D. Hexlo
Đ Đức Trọng Member Sep 19, 2021 #2 Answer: c Explanation: None. Output: Code: $ javac output.java $ java output Hxllo Upvote 0 Downvote