How is the action of exonuclease different from that of endonuclease?

Exonuclease : removes nucleotides from the ends of DNA molecules.
Endonuclease : makes cut at specific position within a DNA.