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 complexity and its types?

1103


What is remote method invocation (rmi)?

1113


Can an object be null?

1012


What are the types of inner classes (non-static nested class) used in java?

1113


What is the most important feature of java? What is an interface?

1057


What is the use of static methods?

1095


How do I convert a string to an int in java?

1124


What does 0 mean in boolean?

1022


How do you include a string in java?

1058


How can I debug the Java security exceptions and AccessControlExceptions?

1202


Write a program to find the whether a number is an Armstrong number or not?

1075


What is the difference between stringbuffer and stringbuilder?

1111


What is stack explain?

1078


How would overload a function based on return type?

1038


Discuss different types of errors that generally occur while programming.

1088