Đoạn mã nào sau đây in ra màn hình chữ “Equal”: int x = 100; float y = 100.0F; if (x == y) { System.out.println(“Equal”); }   Integer x = new Integer(100); Integer y = new Integer(100); if (x == y) { System.out.println(“Equal”); }   String x = “100”; String y = “100”; if (x == y) { System.out.println(“Equal”); }   D. Câu A và C đúng

Đoạn mã nào sau đây in ra màn hình chữ “Equal”:

int x = 100;

float y = 100.0F;

if (x == y) {

System.out.println(“Equal”);

}

 

Integer x = new Integer(100);

Integer y = new Integer(100);

if (x == y) {

System.out.println(“Equal”);

}

 

String x = “100”;

String y = “100”;

if (x == y) {

System.out.println(“Equal”);

}

 

D. Câu A và C đúng

Hướng dẫn

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

 

Thư viện tài liệu12 Tháng bảy, 2023 @ 2:30 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