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

What does flag mean in java?

534


What is prefix of a string?

563


What is the platform?

521


How do you check if a character in a string is a digit or letter?

501


What is type parameter in java?

514






Can we override data members in java?

617


What do you mean by formatting?

536


What are the important features of Java 10 release?

507


Can we declare an interface as final?

568


Why object class is super class for every class in java?

559


Explain notify() method of object class ?

603


Can we override constructors?

538


How to find the largest value from the given array.

518


What is the difference between heap memory and stack memory?

613


How do you control extraneous variables?

497