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

Compile time error error.
String s=java here double quotes missing
and s.replaceAll('j','k'); here also we have to give double quotes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can we write any code after throw statement?

1005


How can you generate random numbers in java?

984


Detail discussions on JVM, memory management and garbage collector.

921


What is the basic concept of java?

961


What is the constructor?

989


What is static class

1053


Is zero a natural number?

974


How would you use Bubble Sort to sort the number of elements?

950


What are annotations in java?

1036


Explain listiterator and methods in listiterator?

958


Why enumeration is faster than iterator?

891


What is the difference between hashmap and hashtable in java?

1048


What is string pooling concept?

995


Can each java object keep track of all the threads that want to exclusively access it?

908


Why generics are used in java?

963