PRO192_-_C2_-_FE_-_SU_2023_398.webp
T

PRO192_-_C2_-_FE_-_SU_2023_398.webp

(Choose 1 answer)
Given that you have a method scale defined as follows, where scalex and scaley are int cons
public Point scale(int x, int y ){
return new Point((int)(x / scalex),
(int)(y/scaley));
}
What will happen when you call this method with double primitives instead of int, as in the fo
1. double px = 10.02;
2. double py = 20.34;
3. Point thePoint = scale( px, py);
A. A compiler error occurs in line 3.
B. The program compiles but a runtime cast exception is thrown.
C. The program compiles and runs.
D. The compiler objects to line 1.
Exit 24

Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom