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 the biggest integer?
Which class is the superclass of all classes?
Can the garbage collection be forced by any means?
Difference between linkedlist and arraylist.
Name and explain the types of ways which are used to pass arguments in any function in java.
What is the importance of finally block in exception handling?
What is import java util arraylist?
What is sleep method?
How many java versions are there?
Write a program in java to establish a connection between client and server?
What is the numeric promotion?
Can abstract class have private constructor?
What do the thread?class methods run() and start() do?
Can private method static?
Is there any limitation of using inheritance?