PRO192_-_SU_2023_-_Block_5_-_RE_753.webp
Mai Linh 2001

PRO192_-_SU_2023_-_Block_5_-_RE_753.webp

(Choose 1 answer)
class Output {
What will be the output of the following Java program?
public static int sum(int... x) {
int sum = 0;
A. 30
for (int xx: x) {
B. Compiler error
C. 10
sum += xx;
}
return sum;
D. 10, 10, 20
}
public static void main(String args[]) {
sum(10);
sum(10, 20);
System.out.println(sum(10, 20));


Thông tin

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

Image metadata

Filename
PRO192_-_SU_2023_-_Block_5_-_RE_753.webp
File size
49 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom