PRO192_-_S6_-_FA_2023_-_FE_1038.webp
V

PRO192_-_S6_-_FA_2023_-_FE_1038.webp

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


Exit 9

Thông tin

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

Image metadata

Filename
PRO192_-_S6_-_FA_2023_-_FE_1038.webp
File size
49.1 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom