Infosys interview question

What is encapsulation in java