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.
3.4k
0
Do you find this helpful?
11

View all MCQs in

Java Programming

Discussion

No comments yet

Related MCQs