PRO192_-_C2_-_FE_-_SU_2023_398.webp
T

PRO192_-_C2_-_FE_-_SU_2023_398.webp

Answer (Choose 1 answer)
What is the output of this program?
1. class Box {
2 3 3.int a,int b
. 4.int c;
5. }
6.class Mainclass {
7.public static void main(String args[])
8.{
9.
10.
Box x = new Box();
Box y;
11.x.a = 2;
12.
x.b = 4;x.c = 1;13.
14.y = x;
15.16.}
17. }
A. 2
B. 4
C. Runtime error
D. Compile error
System.out.println(y.a);
Exit 18

Thông tin

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

Image metadata

Filename
PRO192_-_C2_-_FE_-_SU_2023_398.webp
File size
49 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom