Q19.webp
N

Q19.webp

Question: 19
(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);
A. FPTU
B. null
C. New Id
D. Runtime error

Thông tin

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

Share this media

Back
Bên trên Bottom