PRO192c_-_SU_2024_-_TE2_2584.webp
vanbinh99

PRO192c_-_SU_2024_-_TE2_2584.webp

Kizspy | Question: 16
(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
vanbinh99
Ngày thêm
Lượt xem
2,172
Lượt bình luận
11
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom