Computer Science, asked by tharithasririya, 7 months ago


Which of the following java statement(s) is/are correct to set the value of an index of th
string test?
String test = new String();
1. test[0] "x";
2. test.charAt(0) = "y";

a. option 1
b. option 2
c. option 1 and 2
d. None of the above

answer
A
B
C
D​

Answers

Answered by safa94
8
B option 2
Hope it helps your question
Answered by akhileshpandeyrs
0

Answer:

B - option 2 is the right answer

hope it helps you

Similar questions