This is the sequel to the paper [Li]. In this paper,
we construct the virtual moduli cycles of the degeneration of
the moduli of stable morphisms constructed in [Li]. We
also construct the virtual moduli cycles of the moduli of
relative stable morphisms of a pair of a smooth divisor in a
smooth variety. Based on these, we prove a degeneration
formula of the Gromov-Witten invariants.