Question: Question 3 1 pts If str1 and str2 are both Strings, which of the following will correctly test to see if they are equal? ==

 Question 3 1 pts If str1 and str2 are both Strings,
which of the following will correctly test to see if they are
equal? == 1. (str 1 str2) 2. str1.equals(str2) 3. (str1.compareTo(str2) == 0)
2 and 3 b 1, 2, and 3 will all work 1

Question 3 1 pts If str1 and str2 are both Strings, which of the following will correctly test to see if they are equal? == 1. (str 1 str2) 2. str1.equals(str2) 3. (str1.compareTo(str2) == 0) 2 and 3 b 1, 2, and 3 will all work 1 and 3 1 and 2 a d O ons Od Question 4 28 What would be the value of discountRate after the following statements are executed? double discountRate; char custType = 'B; switch (custType) case 'A': discountRate=0.08; break: case 'B': discountRate=0.06; case 'C': discountRate=0.04; default: discountRate=0.0; a 0.04 b 0.08 c0.06 d 0.0 ob O Question 5 What is the result of the following statement? 17% 3 2 - 12 + 15 a 7 b 12 c 10.5 d 4.8 . oho a Question 6 Which of the following is a valid Java statement? a b String str = "John Doe": string str = "John Doe": string str = "John Doe": String str = 'John Doe': d Ob no O d

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!