PRO192c_-_SU_2024_-_TE2_2584.webp
vanbinh99

PRO192c_-_SU_2024_-_TE2_2584.webp

Kizspy | Question: 32
(Choose 1 answer)

abstract class A {
What is the output of the following Java program?
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[]) { A m = new A() {};
m.call(12, 25);
}
FUOVE
}
A. 37
B. 12
C. 25
D. Compiler error at statement A m = new A() {};

Thông tin

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

Share this media

Back
Bên trên Bottom