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
8
B option 2
Hope it helps your question
Hope it helps your question
Answered by
0
Answer:
B - option 2 is the right answer
hope it helps you
Similar questions