MCQs > IT & Programming > Java > Which code snipped is the best to check whether a String s contains text 'oDesk'?

Java MCQs

Which code snipped is the best to check whether a String s contains text "oDesk"?

Answer

Correct Answer: if (s.equals("oDesk"))

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