Tech Mahindra interview question

Explain the oops concepts in java?