How does the resurrection of the dead relate to Judgment Day in the Bible?

Understand resurrection in judgment