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
Difference between nested and inner classes ?
Which is bigger float or double java?
What is class and its types?
What is the hashcode () and equals () used for?
what methods would you overwrite in java.lang.object class?
What are the differences between heap and stack memory in java?
What is the use of singleton class?
What is a byte array?
What is Recursion Function?
What is the use of list in java?
What is jvm? Why is java called the platform independent programming language?
Is java a virus?
Is arraylist a class in java?
What is number data type in java?
What comes to mind when someone mentions a shallow copy in java?