Question: Consider the following method. publ ic stat ic St r ing abMethod ( St r ing a , St r ing b ) { int
Consider the following method.
publ ic stat ic St r ing abMethodSt r ing a St r ing b
int x a indexOfb ;
whi le x
a asubst r ing x asubst r ingx b length ;
x a indexOfb ;
return a;
What, if anything, is returned by the method call abMethodsing the song", ng
Asi
Bsi the so
Csi the song"
D "sig the sog"
E Nothing is returned because a St r ingIndexOutOfBoundsExcept ion is thrown
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
