1.

Which of this method of class StringBuffer is used to reverse sequence of characters?(a) reverse()(b) reverseall()(c) Reverse()(d) reverseAll()I got this question in final exam.This question is from StringBuffer Methods in portion String Handling of Java

Answer»

The correct answer is (a) reverse()

For explanation: reverse() METHOD REVERSES all characters. It returns the reversed object on which it was CALLED.



Discussion

No Comment Found

Related InterviewSolutions