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 object and class classes used for?
What is generic class?
How will you communicate between two applets?
What is slash r?
Define interface in java?
Can a boolean be null java?
Is a method a procedure?
How do you start a thread?
What is the purpose of garbage collection in java? When is it used?
What is an empty string in css?
What will happen if there is a default method conflict as mentioned above and we have specified the same signature method in the base class instead of overriding in the existing class ?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
What is class forname used for?
What is r in java?
what is collatration?