Yes, one C and one A, AND Alton is correct. There is no way to know which of them will be collected first, in fact there is no guarantee that either of them will EVER be collected, and it's even possible that only one of them will be collected (although that last one is pretty unlikely).
For the exam, you only care about if and when objects become 'eligible' !!! The spec does not define when or how GC will work, and implementations may vary from JVM to JVM.
And really, in this case I'm not just being an exam hound

, as a good
Java programmer, you have to know what is left to the individual JVM, because you don't want to depend on the behavior of a particular JVM, it makes your code less portable! So forget all this nonsense

about the GC sequence, relax, have a beer, and study the stuff you can do something about.
-Bert