if I call any method and i passes string as parameter. for example,
****some code***
somemethod("rohit");
*****some code ****
somemethod(String name){
***some code***
}
Now in this case how many string object will be created? means, hardcoded "rohit" also created as an object and argument name also creates one more object.