Java Programming Fundamentals

Casual Mode - Take your time!

1 / 16
Correct
0
Incorrect
0
Score
0%
Multiple Choice

The following code creates one array and one string object. which object is eligible for garbage collection after the code executes? ... String[] students = new String[10]; String studentName = "Peter Parker"; students[0] = studentName; studentName = null; ...

  1. Array Object
  2. Neither Object
  3. String Objec
  4. Both of the Objects
Change Mode