

McqMate
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. |
View all MCQs in
Java ProgrammingNo comments yet