PRO192_-_SU_2024_-_FE_2329.webp
Q

PRO192_-_SU_2024_-_FE_2329.webp

Kizspy | Question: 30
(Choose 1 answer)
What is the output of the following Java program?
abstract class A {
private int a, b;public void call(int a, int b) {
this.a = a;
this.b = b;
System.out.println(a + b);
}
} public class Main {
public static void main(String args[]) { Am = new A() {};
m.call(12, 25);
}
}
A. 37
B. 12
C. 25
D. Compiler error at statement A m = new A() {};

Thông tin

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

Share this media

Back
Bên trên Bottom