Which of the following String methods results into boolean data type?
- (a)trim()
- (b)equals()
- (c)replace()
- (d)concat()
Show SolutionHide Solution↓
equals()
Reason — In Java, the equals() method compares the contents of two strings and returns a boolean value (true or false), whereas trim(), replace(), and concat() return new strings, not boolean values.

![Consider the Two dimensional array S[2][3], of storage devices given below, state the index of the Hard disk? ICSE 2025 Computer Applications Solved Question Paper.](/assets/img/12475766a759f72e67.png)





