ANR Software Interview Question

Explain OOP in java with example.