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

How to write custom exception in java?

1044


How do you implement tree mirroring in java?

1060


Is there a way to increase the size of an array after its declaration?

1039


What is a percentage sign called?

1113


Difference between nested and inner classes ?

1115


What is boolean logic?

1008


What does int argc char * argv [] mean?

989


How many types of string data types are there?

1085


Explain when classnotfoundexception will be raised ?

1034


What are the main uses of the super keyword?

964


Why java is call by value?

1018


Is char a data type in java?

963


What the difference is between execute, execute Query, execute Update?

826


What are green threads in java?

995


How do you implement polymorphism in our day to day life?

3226