Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor edit

...

The programmer expects Parent and Child to be printed, however, Child is printed twice. This is because the overridden method run() is invoked both the times when a new thread is started.

...