Q.

If you run the code below, what gets printed out?String s=new String ("Bicycle"); int iBegin=1; char iEnd=3; System.out.println (s.substring (iBegin, iEnd));

A. Bic.
B. ic.
C. icy.
D. error: no method matching substring(int, char).
Answer» B. ic.
998
0
Do you find this helpful?
1

View all MCQs in

Java Programming

Discussion

No comments yet

Related MCQs