Z50_1721879830_FFT4M06C_1721879837.png
funnycode_se

Z50_1721879830_FFT4M06C_1721879837.png

(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[]) { A m = new A() {};}
m.call(12, 25);
}
A. 37
B. 12
C. 25
D. Compiler error at statement A m = new A() {};
DIFUOn the exem

Thông tin

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

Share this media

Back
Bên trên Bottom