adplus-dvertising
frame-decoration

Question

Which of these methods of class String is used to check whether a given object starts with a particular string literal?

a.

startsWith()

b.

endsWith()

c.

Starts()

d.

ends()

Answer: (a).startsWith()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of these methods of class String is used to check whether a given object starts with a particular string literal?