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
Can constructor be protected in java?
How java is similar to c?
What is the static import?
What is constant in programming?
What are recursive functions? Give some examples?
Does a class inherit the constructors of its superclass in java programming?
What is the internal implementation of set in java?
What is the difference between throw and throws in java?
What is the size of string?
How do you override a method?
Can array grow dynamically in java?
What is the use of hashmap in java?
Explain different types of thread priorities ?
Can you access non static variable in static context?
What is the difference between the ">>" and " >>>" operators in java?