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
How will you serialize a singleton class without violating singleton pattern?
How do you replace all in word?
Difference between == and .equals() ?
What is final method?
What is the purpose of the System class?
What is the main function in java?
Tell me about different OOPS concepts.
What is an class?
How many types of design patterns are there?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
When should you make a function static?
Give a brief description of java socket programming?
What are different access specifiers in java?
Why is core java important?
What are the 6 boolean operators?