Answer to Question #181326 in Java | JSP | JSF for Bill

Question #181326

*Given answer choices A-E, what is the code's output?


1. Given the following code, the output is __.


String str1 = new String("Apple");

String str2 = "Apple";

System.out.print(str1 == str2);


Answer Choices:

A. 0

B. 1

C. false

D. true

E. str1 == str2


1
Expert's answer
2021-04-14T12:48:30-0400

The true answer is "C".


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog