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

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

ANSWER DOWNLOAD EXAMIANS APP