Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What are the important features of Java 9 release?

948


What is difference between protected and private?

993


How do weakhashmap works?

1091


Given a singly linked list, find the middle of the list in a single traversal without using temporary variable.

993


What is singleton math?

1048


What are wrapper classes in java?

1010


How do you start a new line in java?

917


What is the difference between pass by reference and pass by pointer?

999


If A Class Is Declared Without Any Access Modifiers, Where May The Class Be Accessed?

1117


What is appletviewer?

981


What is the intersection and union methods?

978


what is function overloading in java?

1211


What do you understand by abstract classes?

1014


What are different type of exceptions in java?

912


What is method and methodology?

1048