Home » JAVA Programming » Characters » Question
  1. Which of these methods is an alternative to getChars() that stores the characters in an array of bytes?
    1. Give Bytes()
    2. giveByte()
    3. getBytes()
    4. GetByte()
    5. None of these
Correct Option: C

getBytes() stores the character in an array of bytes. It uses default character to byte conversions provided by the platform.



Your comments will be displayed only after manual approval.