PRO192_FE_SP23_311.webp
Soram

PRO192_FE_SP23_311.webp

  • Media owner Soram
  • Ngày thêm
Bài viết gốc: Chủ đề 'PRO192 FE SP23'
(Choose 1 answer)
}
What will be the result when you attempt to compile and run the following code?.
public class Conv{
public static void main(String argv[]){
Conv c=new Conv();
String s=new String("ello");c.amethod(s);
}
public void amethod(String s){char c='H';
c+=s;
System.out.println(c);
}
A. Compilation and output the string "Hello"
B. Compilation and output the string "ello"
C. Compilation and output the string elloH
D. Compile time error

Thông tin

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

Share this media

Back
Bên trên Bottom