Computer Science, asked by ragava2254, 20 days ago

which of the following java statement(s) is/are correct to set the value of an index of the string test

String test = new String();
1. test [0] = " X " ;
2.test . chartAt(0)= "Y";

Answers

Answered by gamerrudragaming
0

Answer: 2 is correct

Explanation:

Similar questions