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 / nikhil hegde

when u say s.replaceAll('j','k') their will be no output but
internally the string s will be stored as kava. so when u
ask for the output the output will be kava

Is This Answer Correct ?    3 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the biggest integer?

1055


Which class is the superclass of all classes?

1110


Can the garbage collection be forced by any means?

993


Difference between linkedlist and arraylist.

1077


Name and explain the types of ways which are used to pass arguments in any function in java.

1079


What is the importance of finally block in exception handling?

1032


What is import java util arraylist?

1185


What is sleep method?

1154


How many java versions are there?

1057


Write a program in java to establish a connection between client and server?

972


What is the numeric promotion?

1029


Can abstract class have private constructor?

944


What do the thread?class methods run() and start() do?

1038


Can private method static?

926


Is there any limitation of using inheritance?

1091