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 are the important features of Java 9 release?
What is difference between protected and private?
How do weakhashmap works?
Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.
What is singleton math?
What are wrapper classes in java?
How do you start a new line in java?
What is the difference between pass by reference and pass by pointer?
If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?
What is appletviewer?
What is the intersection and union methods?
what is function overloading in java?
What do you understand by abstract classes?
What are different type of exceptions in java?
What is method and methodology?