PRO192_-_FA_2023_-_FE_1027.webp
Erza_girl

PRO192_-_FA_2023_-_FE_1027.webp

9
(Choose 1 answer)
A. Compilation and output the string "ello"
B. Compilation and output the string "Hello"
C. Compilation and output the string elloH
D. Compile time error
}
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){c='H';
char c+=s;
System.out.println(c);
}


  • Like
Reactions: bách

Thông tin

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

Image metadata

Filename
PRO192_-_FA_2023_-_FE_1027.webp
File size
52.8 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom