PRO192_-_SP_2025_-_FE_3648.webp
Y

PRO192_-_SP_2025_-_FE_3648.webp

  • Media owner Yuji99
  • 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 setId(String id) {
}
this.id = id;
public static void main(String[] args) {
Person p = new Person();
p.setld("FPTU");
System.out.println(p.getId());
A. Compile error
B. null
C. P1
D. FPTU

Thông tin

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

Share this media

Back
Bên trên Bottom