Mitra Innovation interview question

Explain Java OOP concepts using examples