int[] x = { 1, 2, 3, 4, 5 }; int[] y = x; y[2] = 10; System.out.println(“s=” + x[2]); Cho đoạn mã sau. Sau khi thực hiện x[2] bằng bao nhiêu?

int[] x = {

1,

2,

3,

4,

5

};

int[] y = x;

y[2] = 10;

System.out.println(“s=” + x[2]);

Cho đoạn mã sau. Sau khi thực hiện x[2] bằng bao nhiêu?

A. 1

B. 3

C. 5

D. 10

Hướng dẫn

Chọn D là đáp án đúng

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 2:40 chiều

Đánh giá chủ đề này
How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site