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 is the size of int in 64-bit jvm?

1089


what is encapsulation in java? Explain

1105


What are different types of classloaders?

1015


What is scope & storage allocation of static, local and register variables? Explain with an example.

1010


What is literal example?

943


Write code of any action class?

1007


Describe method overriding

1124


What's the difference between an abstract class and interface in java?

1028


What are the different types of collections in java?

958


What is a boolean structure?

1082


What is lifetime variable?

952


What is called module?

968


What is meant by stack and queue?

1064


What is %d in printf?

1039


Explain about main thread in java?

1074