PRO192_-_SU_2024_-_FE2_2332.webp
Nanami871

PRO192_-_SU_2024_-_FE2_2332.webp

Kizspy | Question: 17
(Choose 1 answer)
What is the output of the following code snippet?
public class Person {
protected String id;public Person(String id) {
id = id;
}
public static void main(String[] args) { Person p = new Person("FPTU");
System.out.println(p.id);
}
}
A. null
B. FPTU
C. Runtime error
D. None of the others

  • Like
Reactions: khoa51396

Thông tin

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

Share this media

Back
Bên trên Bottom