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
What are the main differences between notify and notifyAll in Java?
Explain different types of wrapper classes in java?
Enlist diffrent types of inheritance supported by java?
What is the use of volatile in java?
what is comparable and comparator interface?
How do you sort a string in java?
How static variable work in java?
when you will synchronize a piece of your code? : Java thread
Can we create a constructor in abstract class?
Compare java and python.
What is basic syntax?
What is object data type?
What is the base class of all exception classes?
Give differences between Quicksort &Mergesort. When should these sorts be used andwhat is their running time in java?
What is an class?