Self-Learning Module

You'll need to sign into your MSOE account VidGrid to see the videos.

In this module, you will learn about debugging.

  • What gets copied when we assign reference variables?
  • What problems can occur as a result of a shallow copy?
  • What is the difference between a deep copy and a shallow copy?
  • What does the Object.clone() method do?
    • Does Object.clone() make a deep or a shallow copy?
    • When is the CloneNotSupportedException thrown?



Draw two memory diagrams: one showing a shallow copy of a linked list, and one showing a deep copy of the same list. Scan them and upload them to Canvas.