Suppose that you create two String objects: String name1 = new String(Jordan); String name2 = new String(Jore);

Question:

Suppose that you create two String objects:
String name1 = new String("Jordan");
String name2 = new String("Jore");
The expression name1.compareTo(name2) has a value of ____________.
a. True
b. False
c. –1
d. 1

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: