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 / nikhil hegde

when u say s.replaceAll('j','k') their will be no output but
internally the string s will be stored as kava. so when u
ask for the output the output will be kava

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is public/private protected in java?

1039


How many decimal places is a double?

987


What is passing value java?

1051


How do you sort a string in alphabetical order in java?

914


How do you use substring in java?

1126


How would you format a date in java? I.e. In the ddmmyyy format?

1371


how to open and edit XML file in Weblogic???

1965


What is meant by method?

1096


What is the meaning of 3 dots in java?

1158


Can finally block be used without a catch?

1003


Explain java coding standards for classes or java coding conventions for classes?

1119


What is method overloading in java ?

1079


State the difference between strings and arrays.

1231


Is string is a keyword in java?

967


When would you use a static class?

975