Choosing safe edits after a shallow copy

A Java Memo contains a String title and a reference page to a mutable Page object with integer field visits. A shallow copy creates a new memo and copies both reference values. Java strings are immutable. Considering each statement independently from this starting state, select every correct statement.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Shallow vs Deep Copies Questions: