PRO192_-_SU_2024_-_FE2_2332.webp
Nanami871

PRO192_-_SU_2024_-_FE2_2332.webp

Kizspy | Question: 18
(Choose 1 answer)
What is the output of the following code snippet?
public class Main {
public int a;public long b;
public void test(long b) {
System.out.println("long b");}
public void test(int a) {
System.out.println("int a");}
public static void main(String[] args) { Main e=new Main();
}
e.test(9*1000000000);
}
A. int a
B. long a
C. long b
D. Runtime error

Thông tin

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

Share this media

Back
Bên trên Bottom