Hammer blow in pipe occurs when

A.Pipe is hit with hammer
B.Pipe bursts under high fluid pressure
C.Excessive leakage occurs in pipe
D.Flow of fluid through pipe is gradually brought to rest by the closing of valve
E.Flow of fluid through pipe is suddenly brought to rest by the closing of the valve