PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp
K

PRO192_-_SP_2024_-_Block_5_-_FE_1921.webp

Multiple Choices
Answer (Choose 1 answer)
What is the output when you try to compile and run the following program?
public class Main{
void f(String t) (System.out.println("String");}void f(StringBuffer h) (System.out.println("StringBuffer");}
public static void main(String argv[]){
f("ABC");
System.out.println();
}
}
A. No output, compile-time error.
B. StringBuffer
C. String
D. The code runs with no output.

Thông tin

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

Share this media

Back
Bên trên Bottom