MCQs
StringBuffer class is used to create strings that can be modified after they are created.
regionMatches()
equals()
Method startsWith() of string class is used to check whether the String in question starts with a specified string. It is specialized form of method regionMatches()
compareTo() function returns zero when both the strings are equal, it returns a value less than zero if the invoking string is less than the other string being compared and value greater than zero when invoking string is greater than the string compared to.
equals() method of string class returns boolean value true if both the string are equal and false if they are unequal.
compareTo() function returns zero when both the strings are equal, it returns a value less than zero if the invoking string is less than the other string being compared and value greater than zero when invoking string is greater than the string compared to.
Two strings can be concatenated by using concat() method.
substring()
trim()