MCQs>IT & Programming>Core Java MCQs>After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");
Core Java MCQs
After the following code fragment, what is the value in a? String s; int a; s = "Foolish boy."; a = s.indexOf("fool");
Answer
Correct Answer: -1
Explanation:
Note: This Question is unanswered, help us to find answer for this one