aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Java Strings
  • Which method is used to reverse the characters within a S...
Multiple choice

Which method is used to reverse the characters within a StringBuffer() object?

  1. ensureCapacity()

  2. reverse()

  3. append()

  4. concat()

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

The 'reverse()' method is used to reverse the characters within a StringBuffer() object.

Keep practicing — related questions

  • Which of the following methods is used to revert 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 in StringBuffer class concatenates two strings of different types to the end...
  • Which of the following methods in java inserts one string into 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 in StringBuffer class is used to replace one set of characters with another ...
  • Which method is used to copy a substring of a StringBuffer into an array?
  • For concatenation of strings, which method is good, StringBuffer or String
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