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
What is rule of accessibility in java?
How do you escape in java?
What are the restrictions that are applied to the java static methods?
What super () does in java?
Explain about map interface in java?
What is io stream in java?
What is java autoboxing?
What is the static keyword?
What are the benefits of java?
Can an integer be null java?
Explain the reason behind ending a program with a system.exit(0)?
What do you understand by overloading and overriding in java?
What is a null check?
What is the file type?
What do you mean by mnemonics?