A

Admin • 830.42K 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.
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category Java
  • Hashtags:

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.

Be the first to start discuss.