MCQs > IT & Programming > Java > find the correct output: StringBuffer fb= new StringBuffer('one two one'); int i, j ; i= fb.indexOf('one'); System.out.println(i); j= fb.LastIndexOf('one'); System.out.println(j);

Java MCQs

find the correct output: StringBuffer fb= new StringBuffer("one two one"); int i, j ; i= fb.indexOf("one"); System.out.println(i); j= fb.LastIndexOf("one"); System.out.println(j);

Answer

Correct Answer: 0, 8

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Java Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it