How many Gems objects are eligible for garbage collection right before the end of the main() method?

Question:

How many Gems objects are eligible for garbage collection right before the end of the main() method? 

image text in transcribed

A. None

B. One

C. Two

D. Three

E. Four

F. The code does not compile

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

Step by Step Answer:

Question Posted: