Question PRG-JAVA-0026
EasyWhich method should be used to compare the contents of two Java Strings?
- A.
equals()
- B.
same()
- C.
Sign up free to see the answer and a step-by-step explanation.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Java question
Which method should be used to compare the contents of two Java Strings?
equals()
same()
Sign up free to see the answer and a step-by-step explanation.
compare()
==