A. Encapsulation is a principle in OOPs that combines data and methods within a class to protect the data from external interference. It promotes data security, reduces code complexity, and enables developers to create more modular and maintainable code.