Q29
What is the purpose of the substring() method of a String object in Java?
A.
To add a substring to the string
B.
To extract a substring from the string
AnswerC.
To check if the string contains a substring
D.
To concatenate two substrings
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board