執(zhí)行以下代碼會輸出什么結(jié)果?()
public class Test {
StringgetStr(String s){
return s + “hello”;
}
public static void main(String arg[]) {
Test t= new Test();
System.out.println(t.getStr(“LiLei\n”)); } }
A. 編譯報錯
B. LiLei hello
C. LiLeihello
D. 無任何輸出