Select from following answers:- str.TrimEnd(",")
- str.Substring(0, str1.LastIndexOf(","))
- str.Remove(str1.Length - 1)
- All of the bove

- All Above
All the methods are used to remove last character in String value in Dot Net.
Here str will be any string :- "Dot net,funda,is,a,dot net,site,"
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator