Step 1: Applying the law of combining volumes.
According to the law of combining volumes, the volumes of reacting gases are in simple whole number ratios. Here, 8 volumes of hydrogen (H$_2$) react with 4 volumes of oxygen (O$_2$) to form 8 volumes of water vapor (H$_2$O).
Step 2: Molar relationship.
From the balanced chemical equation:
\[
2H_2 + O_2 \rightarrow 2H_2O
\]
The molar ratio of hydrogen to water is 2:2, so the volume ratio is 1:1. Thus, 8 volumes of H$_2$ will produce 8 volumes of H$_2$O.
Step 3: Calculating the mass of water produced.
The molar mass of water (H$_2$O) is 18 g/mol. Since the volume of hydrogen is 8 volumes, this corresponds to 8 moles of water. Therefore, the mass of water produced is:
\[
\text{Mass of H}_2\text{O} = 8 \times 18 = 144 \, \text{g}
\]
Step 4: Conclusion.
The correct answer is (D) 144 g.