MCQOPTIONS
Saved Bookmarks
| 1. |
What will be the output for the set of given code? static void Main(string[] args) { String obj = "hello"; String obj1 = "worn"; String obj2 = obj; Console.WriteLine(obj + " " + (obj1.Replace('w' ,'c'))); Console.ReadLine(); } |
| A. | Hello hello |
| B. | Hello worn |
| C. | Hello corn |
| D. | Hello |
| Answer» D. Hello | |