adplus-dvertising
frame-decoration

Question

Which of this method of class String is used to extract a substring from a String object?

a.

substring()

b.

Substring()

c.

SubString()

d.

None of the mentioned

Posted under Java Programming

Answer: (a).substring()

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of this method of class String is used to extract a substring from a String object?