I have a String s = java; What is the output when I say
s.replaceAll('j', 'k'); Also what is the value of s after
replacing?
Answer Posted / nikhil hegde
when u say s.replaceAll('j','k') their will be no output but
internally the string s will be stored as kava. so when u
ask for the output the output will be kava
Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
Does list maintain insertion order java?
Explain the importance of import keyword in java?
Can memory leak happen java?
Write a java program for binary search?
When should we create our own custom exception classes?
When can you say a graph to be a tree?
What are different access specifiers in java? Explain
What is module in oop?
What are desktop procedures?
If we don’t want some of the fields not to serialize how to do that?
Can java cast null?
What is the difference between final, finally and finalize() in java?
What is an association?
Is java a digit method?
What is singleton service?