PRO192_-_REB5_-_FA_2023_1330.webp
lanhong87

PRO192_-_REB5_-_FA_2023_1330.webp

(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

Exit 6
  • Like
Reactions: Khương Đức Anh

Thông tin

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

Image metadata

Filename
PRO192_-_REB5_-_FA_2023_1330.webp
File size
54.2 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom