PRO192_-_REB5_-_FA_2023_1330.webp
lanhong87

PRO192_-_REB5_-_FA_2023_1330.webp

(Choose 1 answer)

Which one statement is true about the following code fragment?
1. import java.lang.Math;
2. Math myMath = new Math();
3. System.out.println("cosine of 0.123 = " + myMath.cos(0.123));
A. Compilation fails at line 2.
B. Compilation fails at line 3
C. Compilation succeeds, although the import on line 1 is not necessary. During execution, an exception is thrown at line 3
D. Compilation succeeds. The import on line 1 is necessary. During execution, an exception is thrown at lir
E. Compilation succeeds and no exception is thrown during execution.
Exit 46

Thông tin

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

Image metadata

Filename
PRO192_-_REB5_-_FA_2023_1330.webp
File size
58.9 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom