1.

Which of these methods is an alternative to getChars() that stores the characters in an array of bytes?(a) getBytes()(b) GetByte()(c) giveByte()(d) Give Bytes()I have been asked this question in an internship interview.The question is from Operation on Characters topic in portion Arrays and Strings of C#

Answer»

Correct option is (a) getBytes()

To explain I WOULD SAY: getBytes() STORES the CHARACTER in an array of bytes. It uses default character to byte conversions.



Discussion

No Comment Found

Related InterviewSolutions