Cognizant interview question

What is encapsulation in java?