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 public/private protected in java?
How many decimal places is a double?
What is passing value java?
How do you sort a string in alphabetical order in java?
How do you use substring in java?
How would you format a date in java? I.e. In the ddmmyyy format?
how to open and edit XML file in Weblogic???
What is meant by method?
What is the meaning of 3 dots in java?
Can finally block be used without a catch?
Explain java coding standards for classes or java coding conventions for classes?
What is method overloading in java ?
State the difference between strings and arrays.
Is string is a keyword in java?
When would you use a static class?