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?
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