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

How will you serialize a singleton class without violating singleton pattern?

2005


How do you replace all in word?

1131


Difference between == and .equals() ?

1041


What is final method?

1119


What is the purpose of the System class?

1042


What is the main function in java?

1110


Tell me about different OOPS concepts.

1053


What is an class?

1091


How many types of design patterns are there?

1166


Will the compiler creates a default constructor if I have a parameterized constructor in the class?

1169


When should you make a function static?

1033


Give a brief description of java socket programming?

1006


What are different access specifiers in java?

1061


Why is core java important?

1090


What are the 6 boolean operators?

1180