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 / prabhavith

replaceAll take two strings as parameter
but in the given question characters are given as parameter
hence it is an error

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is polymorphism and what are the types of it?

993


Are registers volatile?

937


What is the concept of multithreading?

991


Can a class have multiple subclasses?

1108


What do you mean by static variable?

1064


Explain a few methods of overloading best practices in java?

987


What are different data structures in java?

1046


How to connect to a remote database using Applet?

2547


what is the difference between future and callable interface in java?

1236


What are instance variables?

1077


Which access specifier can be used with class ?

1000


How do you compare arrays in java?

952


Is class forname reflection?

990


I want to persist data of objects for later use. What’s the best approach to do so?

934


How will you invoke any external process in java?

1116