Question : 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?
1. class java.lang.String class java.lang.String class java.util.ArrayList 2. class java.lang.Object class java.lang. Object class java.util.Collection 3. Access Mostly Uused Products by 50000+ Subscribers 4. class java.lang.StringBuilder class java.lang.String class java.util.List