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 / malli
Compile time error error.
String s=java here double quotes missing
and s.replaceAll('j','k'); here also we have to give double quotes.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Can we write any code after throw statement?
How can you generate random numbers in java?
Detail discussions on JVM, memory management and garbage collector.
What is the basic concept of java?
What is the constructor?
What is static class
Is zero a natural number?
How would you use Bubble Sort to sort the number of elements?
What are annotations in java?
Explain listiterator and methods in listiterator?
Why enumeration is faster than iterator?
What is the difference between hashmap and hashtable in java?
What is string pooling concept?
Can each java object keep track of all the threads that want to exclusively access it?
Why generics are used in java?