Which expression will extract the substring "cde" given the following…

PYQ RPSC Programmer 2013

Which expression will extract the substring "cde" given the following declaration String str = "abcdef"

  1. A.

    str.substring(2,2)

  2. B.

    str.substring(2,3)

  3. C.

    str.substring(2,4)

  4. D.

    str.substring(2,5)

Attempted by 5 students.

Sign up free to check your answer

Sign up free

Explore the full course: Rpsc Programmer

Loading lesson…