aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Strings
  • Which method is used to copy a substring of a StringBuffe...
Multiple choice

Which method is used to copy a substring of a StringBuffer into an array?

  1. getChars()

  2. append()

  3. setLength()

  4. insert()

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

 The 'getChars()' method is used to copy a substring of a StringBuffer into an array.

Keep practicing — related questions

  • Which of the following methods in StringBuffer class is used to replace one set of characters with another ...
  • Which of the foolowing methods in StringBuffer class is used to set the length of the buffer within a Strin...
  • Which of the following methods of the String class in Java is used to copy a range of characters from the g...
  • Which of the following methods in StringBuffer class concatenates two strings of different types to the end...
  • Which method is used to reverse the characters within a StringBuffer() object?
  • Which of the following methods is used in StringBuffer class to concatenate the string representation of an...
  • Which of the following methods is used to revert the characters within a StringBuffer object?
  • The value of a single character can be obtained from a StringBuffer by using _____________ method.
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

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