What is ‘IS-A’ relationship in java?

‘is a’ relationship is also known as inheritance. We can implement ‘is a’ relationship or inheritance in java
using extends keyword. The advantage or inheritance or is a relationship is re-usability of code instead of
duplicating the code.

Example : Motor cycle is a vehicle
Car is a vehicle Both car and motorcycle extends vehicle.