1.

Which of these methods of class String is used to extract all the characters from a String object?(a) CHARAT()(b) Remove()(c) charAt()(d) Replace()This question was posed to me during an interview for a job.The doubt is from Operation on Characters in portion Arrays and Strings of C#

Answer»

Right choice is (b) Remove()

EXPLANATION: REPLACE() replaces all instances of a CHARACTER with a new character while Remove extracts CHARACTERS from the string.



Discussion

No Comment Found

Related InterviewSolutions