Trong đoạn mã trên x nhận giá trị bao nhiêu? StringBuffer s = new StringBuffer("hello how are you?"); int x = s.charAt(6); System.out.println(x);
Giải thích
Chọn đáp án B. Vì: s.charAt(6) truy xuất phần tử thứ 7 là kí tự 0, trong mã asscii thì kí tự 0 là 104