Q50.webp
Đ

Q50.webp

Kizspy | Question: 50
(Choose 1 answer)
What is the output of the following Java program?
interface A {
}
public int setValue(int value);
public class Main {
public static void main(String[] args) {
}
int value = 1;
A objA new A() {
public int setValue(int value) {
}
value++;
return value;
System.out.println(objA.setValue(++value));
A. 3
B. 1
C. 2
D. Compile error

Thông tin

Category
PRO192
Thêm bởi
Đức Thành1
Ngày thêm
Lượt xem
1,395
Lượt bình luận
6
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom