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 the size of int in 64-bit jvm?
what is encapsulation in java? Explain
What are different types of classloaders?
What is scope & storage allocation of static, local and register variables? Explain with an example.
What is literal example?
Write code of any action class?
Describe method overriding
What's the difference between an abstract class and interface in java?
What are the different types of collections in java?
What is a boolean structure?
What is lifetime variable?
What is called module?
What is meant by stack and queue?
What is %d in printf?
Explain about main thread in java?