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 polymorphism and what are the types of it?
Are registers volatile?
What is the concept of multithreading?
Can a class have multiple subclasses?
What do you mean by static variable?
Explain a few methods of overloading best practices in java?
What are different data structures in java?
How to connect to a remote database using Applet?
what is the difference between future and callable interface in java?
What are instance variables?
Which access specifier can be used with class ?
How do you compare arrays in java?
Is class forname reflection?
I want to persist data of objects for later use. What’s the best approach to do so?
How will you invoke any external process in java?