import java.awt.Point;
publicclass MainClass {
publicstaticvoid main(String[] argv) {
int px = 100;
int py = 2000;
Point thePoint = scale(px, py);
}
publicstatic Point scale(long x, long y) {
int scalex = 2;
int scaley = 3;
returnnew Point((int) (x / scalex), (int) (y / scaley));
}
}
A. A compiler error is caused.
B. The program compiles but a runtime cast exception is thrown.
C. The program compiles and runs.