PRO192_-_FA_2024_-_RE_3069.webp
Nitta93

PRO192_-_FA_2024_-_RE_3069.webp

  • Media owner Nitta93
  • Ngày thêm
Kizspy | Question: 18 (Choose 1 answer)
What is the output of the following code snippet?
public class Person {
String id = "P1";public Person(String id) {
this.id = id;
}
public String getId() {
return id;
}
public void setld(String id) { this.id = id;}
public static void main(String[] args) { Person p = new Person();p.setId("FPTU");System.out.println(p.getId());}
FUOVE
}
A. Compile error
B. null
C. P1
D. FPTU

Thông tin

Category
PRO192
Thêm bởi
Nitta93
Ngày thêm
Lượt xem
2,770
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom