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


Please Help Members By Posting Answers For Below Questions

What is string english?

544


What is replaceall in java?

545


What is connection class in java?

508


List out five keywords related to exception handling ?

600


what is the purpose of "virtual"?

570






Can singleton class be inherited in java?

518


Why bytecode is called bytecode?

588


Explain garbage collection in java?

549


What is difference between checked and unchecked exception in java?

578


Which sort is best in java?

529


What is the purpose of main function in java?

539


What is static data type in java?

544


How are observer and observable used in java programming?

543


What are the access modifiers available in java?

562


What is general methodology?

570