PRO192_-_C1_-_FE_-_SU_2023_391.webp
H

PRO192_-_C1_-_FE_-_SU_2023_391.webp

(Choose 1 answer)
Which statement is true about the following code fragment?
1. int j = 2;
2. switch (j) {
case 2:
System.out.println("value is two");
5. case 2+1:
34567 7..34.
6. System.out.println("value is three");
break;8. default:
9.System.out.println("value is " + j);
10. break;
11.}
A. The code is illegal because of the expression at line 5.
B. The acceptable types for the variable j, as the argument to the switch() construct, could b short, int, or long.
C. The output would be the text value is two.
D. The output would be the text value is two followed by the text value is three.
E. The output would be the text value is two, followed by the text value is three, followed by
Edt (26

Thông tin

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

Image metadata

Filename
PRO192_-_C1_-_FE_-_SU_2023_391.webp
File size
73.5 KB
Dimensions
1713px x 893px

Share this media

Back
Bên trên Bottom