Q. After the following code fragment, what is the value in a?~~~String s; int a;~~~s = "Foolish boy."; a = s.indexOf("fool");
β
Correct Answer: (A)
-1.
You must be Logged in to update hint/solution