InterviewSolution
Saved Bookmarks
| 1. |
What will be the output of the following code :- String city ="Madras" ; String str="MADAM"; city=city.substring(0,1).toLowerCase().concat(str+city.length()); System.out.println(city) ; System.out.println(str.replace('A','M')); |
| Answer» | |