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 / prabhavith
replaceAll take two strings as parameter
but in the given question characters are given as parameter
hence it is an error
| Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
How to write custom exception in java?
How do you implement tree mirroring in java?
Is there a way to increase the size of an array after its declaration?
What is a percentage sign called?
Difference between nested and inner classes ?
What is boolean logic?
What does int argc char * argv [] mean?
How many types of string data types are there?
Explain when classnotfoundexception will be raised ?
What are the main uses of the super keyword?
Why java is call by value?
Is char a data type in java?
What the difference is between execute, execute Query, execute Update?
What are green threads in java?
How do you implement polymorphism in our day to day life?