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 / nikhil hegde
when u say s.replaceAll('j','k') their will be no output but
internally the string s will be stored as kava. so when u
ask for the output the output will be kava
Is This Answer Correct ? | 3 Yes | 5 No |
Post New Answer View All Answers
How to connect to a remote database using Applet?
Describe string intern() methodology
Explain the difference between string, stringbuffer and stringbuilder in java?
What is maximum size of arraylist in java?
Why are the methods of the math class static?
what is predefined function in java?
What is a pattern what is an anti pattern?
What is a pointer and does java support pointers?
What is Java Package and which package is imported by default?
What is the purpose of a parameter?
What is the difference between static and non-static variables in java programming?
What is toarray method in java?
Explain different types of thread priorities ?
What happens if an exception is not handled in a program?
Where is jre installed?