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
Programmers Guide To Java SE 8 Oracle Certified Associate OCA
ISBN: 9780132930215
1st Edition
Authors: Khalid Mughal, Rolf Rasmussen
Question Posted: