

McqMate
Q. |
After the following code fragment, what is the value in a?~~~String s; int a;~~~s = "Foolish boy."; a = s.indexOf("fool"); |
A. | -1. |
B. | 0. |
C. | 4. |
D. | random value. |
Answer» A. -1. |
View all MCQs in
Java ProgrammingNo comments yet