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
Can a java program have 2 main methods?
Can a class be private?
What is a char in java?
Which oo concept is achieved by using overloading and overriding?
Is zero a positive integer?
What is keyword in oop?
What is pojo class in java?
What is the java project architecture?
Define an abstract class with reference to java.
What are static methods?
What is data object example?
What are the four integer types supported by java?
I am a fresher and know core java, c languge, html, css etc if I am illegible for any job then send it on my email tatranakshay276@gmail.com
How can we achieve thread safety in java?
Are there structures in java?