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 is array length?
What do you mean by local class?
What is the final keyword in java?
What is the symbol for space?
What does %d do in java?
What are scalar data types?
What are the high-level thread states in java programming?
What is local variable and instance variable?
What is sortedset in java?
how to create constants in java?
Explain about fail fast iterators in java?
Can you explain the usages of class.forname()?
Can a class have more than one object?
How many static init can you have?
Write a factorial program using recursion in java?