JAVA Strings
String str1 = "Kolkata".replace('k', 'a');In the above statement, the effect on string Kolkata is

All characters k are replaced by a.
All characters a are replaced by k.
Displays error message
The first occurrence of k is replaced by a.

ANSWER DOWNLOAD EXAMIANS APP