Which expression will extract the substring kap, given the following declaration: String str = kakapo; Select the

Question:

Which expression will extract the substring "kap", given the following declaration:

String str = “kakapo”;

Select the one correct answer.

(a) str.substring(2, 2)

(b) str.substring(2, 3)

(c) str.substring(2, 4)

(d) str.substring(2, 5)

(e) str.substring(3, 3)

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: