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

What are byte codes?

1221


List out benefits of object oriented programming language?

897


What is a dynamic array java?

945


Does substring start with 0?

985


What is exception hierarchy in java?

1010


What is array and arraylist in java?

1107


How do you write a good declaration?

984


How to make a read-only class in java?

1163


What is difference between protected and private?

1077


Can a final variable be manipulated in java?

981


How can we create an immutable class in java?

1066


What is formatted output?

956


What is google full form?

1014


How to compare strings in java?

1013


What does the “static” keyword mean?

1103