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

Can constructor be protected in java?

972


How java is similar to c?

1061


What is the static import?

1118


What is constant in programming?

1119


What are recursive functions? Give some examples?

1204


Does a class inherit the constructors of its superclass in java programming?

1132


What is the internal implementation of set in java?

947


What is the difference between throw and throws in java?

1112


What is the size of string?

1101


How do you override a method?

1029


Can array grow dynamically in java?

990


What is the use of hashmap in java?

1096


Explain different types of thread priorities ?

1105


Can you access non static variable in static context?

1054


What is the difference between the ">>" and " >>>" operators in java?

994