Q18.webp
ThanhTam81

Q18.webp

Kizspy | Question: 18
(Choose 1 answer)
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);
FJOVERFLOW.COM
A. FPTU
B. null
C. New Id
D. Runtime error

Thông tin

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

Share this media

Back
Bên trên Bottom