ANR Software interview question

Explain OOP in java with example.