Alpha Payments Interview Question

Why interface are used in java