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
What is the use of isempty in java?
What are scriptlets?
What is a consumer in java?
What is a condition in java?
What is JFC?
What variables are stored in stack?
How do you calculate roots in java?
Why are functions called methods in java?
What are the different ways of creating thread?
what are Hostile Applets?
What is the difference between sop and work instruction?
What is ctrl m character?
Can we access the non-final local variable, inside the local inner class?
What is anonymous inner class?
How many types of interfaces are there?