PRO192_-_C1_-_RE_-_SU_2023_545.webp
Hoàng Long1

PRO192_-_C1_-_RE_-_SU_2023_545.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;
13.x.c = 1;
14.y = x;
15.16.}
17. }
A. 2
B. 4
C. Runtime error
D. Compile error
System.out.println(y.a);

Exit 42

Thông tin

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

Image metadata

Filename
PRO192_-_C1_-_RE_-_SU_2023_545.webp
File size
49 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom