PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
T

PRO192_-_SP_2024_-_Block_5_-_RE_1965.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[]){c.amethod(s);
Conv c=new Conv();String s=new String("ello");
}
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

  • Like
Reactions: bách

Thông tin

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

Image metadata

Filename
PRO192_-_SP_2024_-_Block_5_-_RE_1965.webp
File size
207.7 KB
Dimensions
1920px x 1012px

Share this media

Back
Bên trên Bottom