What is true of the following code? (Choose two.) A. If the blank contains -x.compareTo(y), then the

Question:

What is true of the following code? (Choose two.) 

image text in transcribed

A. If the blank contains -x.compareTo(y), then the code outputs 0.

B. If the blank contains -x.compareTo(y), then the code outputs -1.

C. If the blank contains x.compareTo(y), then the code outputs 0.

D. If the blank contains -y.compareTo(x), then the code outputs 0.

E. If the blank contains -y.compareTo(x), then the code outputs -1.

F. If the blank contains y.compareTo(x), then the code outputs 0.

G. If the blank contains y.compareTo(x), then the code outputs -1.

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

Step by Step Answer:

Question Posted: