Suppose that you declare two String objects as: String word1 = new String(happy); String word2; When you

Question:

Suppose that you declare two String objects as:
String word1 = new String("happy");
String word2;
When you ask a user to enter a value for word2, if the user types happy, the value of word1 == word2 is ____________.
a. True
b. False
c. Illegal
d. Unknown

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Java Programming

ISBN: 978-1337397070

9th edition

Authors: Joyce Farrell

Question Posted: