If String myFriend = new String(Ginny);, which of the following has the value 1? a. myFriend.compareTo(Gabby); b.

Question:

If String myFriend = new String("Ginny");, which of the following has the value 1?
a. myFriend.compareTo("Gabby");
b. myFriend.compareTo("Gabriella");
c. myFriend.compareTo("Ghazala");
d. myFriend.compareTo("Hammie");

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: