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

Difference between nested and inner classes ?

1051


Which is bigger float or double java?

925


What is class and its types?

973


What is the hashcode () and equals () used for?

954


what methods would you overwrite in java.lang.object class?

952


What are the differences between heap and stack memory in java?

996


What is the use of singleton class?

904


What is a byte array?

1048


What is Recursion Function?

1128


What is the use of list in java?

936


What is jvm? Why is java called the platform independent programming language?

946


Is java a virus?

896


Is arraylist a class in java?

995


What is number data type in java?

943


What comes to mind when someone mentions a shallow copy in java?

1061