A Admin • 828.03K Points Coach Q. In Java, what is the purpose of the endsWith() method of a String object? (A) To check if the string ends with a specified substring (B) To add a suffix to the string (C) To remove trailing whitespace (D) To check if the string contains a specified character Correct Answer - Option(A) Views: 13 Filed under category Java Hashtags: Share Manage Tags
Discusssion
Login to discuss.