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

PRO192_-_SU_2023_-_Block_5_-_RE_753.webp

(Choose 1 answer)
1. public class Test {
. public String foo(int x, int y) { 2
3.
return "AA":
A. Line 26 prints "AA" to System.out.
4. }
6. public String foo(int... vals) {
B. Compilation of class A will fail due to an error in line 6.
return "BB":
C. An exception is thrown at line 26 at runtime.
8.}9.}
D. Line 26 prints "BB" to System.out.
Given:
25. Test a=new Test();
26. System.out.println(a.foo(4, 5));
What is the result?


Thông tin

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

Image metadata

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

Share this media

Back
Bên trên Bottom