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 byte codes?
List out benefits of object oriented programming language?
What is a dynamic array java?
Does substring start with 0?
What is exception hierarchy in java?
What is array and arraylist in java?
How do you write a good declaration?
How to make a read-only class in java?
What is difference between protected and private?
Can a final variable be manipulated in java?
How can we create an immutable class in java?
What is formatted output?
What is google full form?
How to compare strings in java?
What does the “static” keyword mean?