PRO192_-_S6_-_FA_2023_-_FE_1038.webp
V

PRO192_-_S6_-_FA_2023_-_FE_1038.webp

(Choose 1 answer)
public class Conv{
What will be the result when you attempt to compile and run the following code?.
public static void main(String argv[]){
Conv c=new Conv();String s=new String("ello");
c.amethod(s);
}
B. Compile time error
public void amethod(String s){
C. Compilation and output the string "Hello"
char c='H';c+=s
D. Compilation and output the string elloH
}
System.out.println(c);
A. Compilation and output the string "ello"


Exit 44
  • Like
Reactions: bách

Thông tin

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

Image metadata

Filename
PRO192_-_S6_-_FA_2023_-_FE_1038.webp
File size
54 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom