aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
Multiple choice

Which of the following methods in Java is used to store characters in an array of bytes?

  1. getChars()

  2. getBytes()

  3. charAt()

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

 This method is used to store the characters in an array of bytes.

Keep practicing — related questions

  • Which of the following methods in java is used to extract a single character from a string?
  • Which method converts all the characters in a String object into a character array?
  • Which of the following methods is used in string class of java to extract a single character from a string?
  • Which of the following methods is used to extract a single character from a string?
  • Which of the following methods is used to extract a single character from a string?
  • Which of the following functions is used in Java to extract more than one character at a time?
  • Which of the following methods is used to convert a given string to a new character array?
  • Which of the following methods in string class of Java is used to extract more than one character at a time?

Practice this topic

  • Java Core Classes and Threads (1473 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy