#20Multiple Choice

Given the code fragment: String h1 = "Bob"; String h2 = new String ("Bob"); What is the best way to test that the values of h1 and h2 are the same?

Premium Content

Create a free account to preview more questions, or enroll for full access.

Get Started Free
Previous
Question 20 of 186
Exam 1Z0-803 Topic 1 Question 22
Back to all questions
Next