M Man Ly New 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 c = new StringBuffer("Hello"); c.delete(0,2); System.out.println(c); } } A. He B. Hel C. lo D. llo
What will be the output of the following Java program? Code: class output { public static void main(String args[]) { StringBuffer c = new StringBuffer("Hello"); c.delete(0,2); System.out.println(c); } } A. He B. Hel C. lo D. llo
Đ Đỗ Huyền Trang New member Sep 19, 2021 #2 Answer: d Explanation: delete(0,2) is used to delete the characters from 0 th position to 1 st position. Output: Code: $ javac output.java $ java output llo Upvote 0 Downvote
Answer: d Explanation: delete(0,2) is used to delete the characters from 0 th position to 1 st position. Output: Code: $ javac output.java $ java output llo