HCM202_-_SP_2023_-_FE_91.webp
minhha289

HCM202_-_SP_2023_-_FE_91.webp

Answer (Choose 1 answer)


Given the following Java code:
class Up{
}
public Up(String s) { System.out.print("B"); }
public class Down extends Up{public Down(String s) {
System.out.print("D");public static void main(String[] args){}
new Down("C");
System.out.println(" ");
}
}
//--
What is the result?
A. BD
B. DB
C. BDC
D. DBC
E. Compilation fails
Exit 1

Thông tin

Category
HCM202
Thêm bởi
minhha289
Ngày thêm
Lượt xem
821
Lượt bình luận
3
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom