I saw an exact sequence of ideals
$$0 \rightarrow I \cap J\rightarrow I \oplus J \rightarrow I + J \rightarrow 0$$In this sequence, maps are ring homomorphisms or module homomorphisms?
And how the above sequence yield the exact seqeunce
$$0 \rightarrow R/I \cap J\rightarrow R/I \oplus R/J \rightarrow R/(I + J) \rightarrow 0$$
The maps are module homomorphisms; more precisely, they are:
$I \cap J \mapsto I \oplus J $ via $x \mapsto (x,x)$,
and
$I\oplus J \mapsto I + J $ via $(x,y) \mapsto x - y$.
If you embed this exact sequence as a subsequence of the obvious short exact sequence
$ 0 \to R \to R\oplus R \to R \to 0$
(with maps defined by the same formulas), then the quotient is the second short exact sequence that you ask about.