Q2. How is Spark different from Hadoop?
Ans. Spark uses in-memory processing, is easier to use, and integrates batch, streaming, and machine learning in one framework, unlike Hadoop's disk-based processing.