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 a bufferedreader?
What is JVM and is it platform independent?
How do you remove an object from an arraylist in java?
What are parsers? Dom vs sax parser.
What is the purpose of tostring() method in java?
What is a values collection view ?
Does chrome use java?
What is the purpose of static methods and static variables?
What is a native method in java programming?
Which sorting algorithm is best in java?
Is java a virus?
What is difference between checked and unchecked exception in java?
What is tree node in java?
How many arguments can be passed to main ()?
What is empty list in java?