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 / savita

kava

Is This Answer Correct ?    0 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you declare a string variable?

519


Can we assign integer value to char in java?

511


What environment variables do I need to set on my machine in order to be able to run java programs?

603


What is binary search in java?

559


What are the differences between checked exception and unchecked exception?

526






How java uses the string and stringbuffer classes?

515


What is jvm? How its run?

662


What is the difference between error and an exception?

569


what is nested class in java?

601


What is the major advantage of external iteration over internal iteration?

613


What is main in java?

511


Explain the difference between throw and throws in java?

552


What is the use of singleton?

513


What is the final class modifier?

561


What is generic type?

574