Single Choice
Not Set
Q
String str1 = "Kolkata".replace('k', 'a');
In the above statement, the effect on string Kolkata is
ID: #2224
String in Java
2,995 views
Question Info
#2224Q ID
Not SetDifficulty
String in JavaTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
All characters k are replaced by a.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic