PRO192_-_FA_2024_-_FE_2969.webp
B

PRO192_-_FA_2024_-_FE_2969.webp

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

  • Wow
Reactions: minhnnhe194050

Thông tin

Category
PRO192
Thêm bởi
Bích Thủy
Ngày thêm
Lượt xem
5,478
Lượt bình luận
11
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom