📚 Practice Mode

Java Programming Fundamentals

Learn at your own pace with hints and detailed explanations

1 / 16
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