Home / Programming MCQs / JAVA MCQs / Question

M

Mr. Dubey • 51.43K Points
Coach

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.

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.