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 / prabhavith
replaceAll take two strings as parameter
but in the given question characters are given as parameter
hence it is an error
Is This Answer Correct ? | 5 Yes | 6 No |
Post New Answer View All Answers
What is array command?
How do you check if an arraylist is not empty?
What is the difference between the direct buffer and non-direct buffer in java?
What is return used for in java?
What is the purpose of garbage collection in java?
What are the different data types in java?
Can we declare a static variable inside a method?
Why does java does not support multiple inheritance? Explain
Is int primitive data type?
What is the static import?
Describe what happens when an object is created in java ?
What is a stringbuffer?
What is the gregoriancalendar class in java programming?
Why are variables important in research?
Realized?