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 string :: npos?
How do you execute a thread in java?
Where pragma is used?
What are the limitations of procedural programming approach?
What is the difference between private & public & friendly classes?
Can we write any code after throw statement?
What sorting algorithm does javascript use?
What are the steps involved to create a bean?
Why super is first line in java?
What are the restrictions imposed on method overriding?
Difference between class#getinstance() and new operator ?
If a variable is declared as private, where may the variable be accessed?
Is final static java?
If an application has multiple classes in it, is it okay to have a main method in more than one class?
How do you write a conditional statement?