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
Is main a keyword in java?
what is singleton class in java?
Give the hierarchy of inputstream and outputstream classes.
What is the difference between final, finally and finalize() in java?
What is the format specifier?
What are the differences between getting and load method?
Can a java program have 2 main methods?
What is meant by javabeans?
What are namespaces in java?
Why is logger singleton?
What are parameters in a method?
What is the lifetime and scope of a variable?
Is java util regex pattern thread safe?
Is string passed by reference in java?
What is java console application?