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
What is string english?
What is replaceall in java?
What is connection class in java?
List out five keywords related to exception handling ?
what is the purpose of "virtual"?
Can singleton class be inherited in java?
Why bytecode is called bytecode?
Explain garbage collection in java?
What is difference between checked and unchecked exception in java?
Which sort is best in java?
What is the purpose of main function in java?
What is static data type in java?
How are observer and observable used in java programming?
What are the access modifiers available in java?
What is general methodology?