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 a bufferedreader?

1021


What is JVM and is it platform independent?

1000


How do you remove an object from an arraylist in java?

912


What are parsers? Dom vs sax parser.

991


What is the purpose of tostring() method in java?

1090


What is a values collection view ?

1038


Does chrome use java?

922


What is the purpose of static methods and static variables?

1009


What is a native method in java programming?

1015


Which sorting algorithm is best in java?

946


Is java a virus?

901


What is difference between checked and unchecked exception in java?

967


What is tree node in java?

927


How many arguments can be passed to main ()?

949


What is empty list in java?

1036