Which of the following is not a method in the ‘String’ class?
Java MCQ: Which of the following is not a method in the ‘String’ class? a) length() b) substring() c) equalsIgnoreCase() d) size() Answer: d) size() Explanation: The Java String class provides a variety of methods for manipulating and inspecting strings. Common methods include length() for getting the length of the string, substring() for extracting a […]
Which of the following is not a method in the ‘String’ class? Read More »